#Sales Offer!| Get upto 25% Off:

You will input your own data today using the survey your instructor administered and analyzed a few years ago for a study on the relationship between trust and willingness to get the HPV vaccine.
STEP ONE: adding the variables

  • Start by opening the blank survey “HPV survey” found on Canvas. Go to question # 89. You are going to create a data set by entering variables 89-101.
  • Open a blank data set in SPSS. Go to the Variable View and click in the first box under the “Name” column. Name the first variable “gender.” For the rest of the variables, name each of them something that makes sense. There can be no spaces in the variables names. SPSS will auto-fill the rest of the rows with information. The only columns you need to worry about are Width, Decimals, and Values.
  • Width is the number of numeric characters before the decimal point, Decimals is after, and Values is how the data will be coded into number. As the “gender” variable will be dichotomous (only 2 response categories), and relating to the survey question about male or female, the Width should be 1 and Decimals at zero.
  • Click on the box under the Values column, then the blue icon labeled “…” and a box should pop up. Type “0” into the Value box, “female” into the “label” box and hit Add. Then “1” for “male” and hit OK.
  • Do this for the rest of the variables 90-101. Unlike the gender variable, all of the other variables will have more than two responses, so you will need to assign numeric values to each response. For example, for the race/ethnicity question, you could make Hispanic/Latino=0, Asian=1, black=2, American Indian=3, pacific islander=4, white=5, and other=6.

*** For the “year you were born’ question, since you are using actual numbers, not just numbers to code other information, you do not need to assign values to these responses. SPSS will understand the response information just fine.
***For variables that have an “other” response category, just assign the next number to this category. (usually researchers will create a whole other variable for each “other” response, but in the interest of time we are not going to do that)
***For variables that have a “don’t know” response category, assign a value of “99” to this response. In analyzing the data, the researcher will often “throw out” these “don’t knows,” and so to avoid confusion, they often assign it a value that is far from the other values. For example, with the father’s education category, you could have values from 0-4 (or 1-5, either is acceptable) for less than high school through graduate school, and then a 99 for ‘don’t know.’
***For the last question about college major, instead of the variable being “numeric,” in the second column in SPSS under TYPE, choose “string.” You do not need to assign numeric values since there are no response categories. Also, change the width to “20”.
STEP TWO: Inputting the Data

  • While still in Variable View, right click on the top box under the blank column to the left of the “Name” column. Click “Insert Variable.” A new row should appear at the top of the spreadsheet labeled “VAR00001.” Click this box and change the name to “case.”
  • Switch to Data View. Assign every respondent (all of the 10 completed surveys) a case number. This is merely for clerical purposes and is a good habit to get into for when you work with larger data sets that can easily become disorganized. Much like the age variable, no values need to be assigned for this “variable.”
  • On Canvas, find and open the file called “HPV data.” This is the (fictional) data of 10 people who completed the survey. Populate the responses into the spreadsheet. Each respondent will be one row in the spreadsheet.
  • Run a frequency distribution on all variables to ensure that nothing was missed. Include the mean, median, and/or mode, and the standard deviation (see lab from last few weeks for how to do that). MAKE SURE YOU LOOK OVER YOUR FREQUENCY DISTRIBUTIONS (You can tell if anything was missed if your variable name is listed as missing, and you have a number value alongside your variable names.) If anything was missed, go back to Variable view and fix it. Copy & Paste the Statistics table and the frequency distributions for all variables 89-101 below. Save this data set; we may use it in later weeks.

Found something interesting ?

• On-time delivery guarantee
• PhD-level professional writers
• Free Plagiarism Report

• 100% money-back guarantee
• Absolute Privacy & Confidentiality
• High Quality custom-written papers

Related Model Questions

Feel free to peruse our college and university model questions. If any our our assignment tasks interests you, click to place your order. Every paper is written by our professional essay writers from scratch to avoid plagiarism. We guarantee highest quality of work besides delivering your paper on time.

Problem Description The MNIST database of handwritten digits (from 0 to 9) has a training set of 55,000 examples, and a test set of 10,000 examples. The digits have been size-normalized and centered in a fixed-size image (28×28 pixels) with values from 0 to 1. You can use the following code with TensorFlow in Python to download the data. from keras.datasets import mnist (x_train, y_train), (x_test, y_test) = mnist.load_data() Every MNIST data point has two parts: an image of a handwritten digit and a corresponding label. We will call the images ? and the labels ?. Both the training set and test set contain ? and ?. Each image is 28 pixels by 28 pixels and can be flattened into a vector of 28×28 = 784 numbers. As mentioned, the corresponding labels in the MNIST are numbers between 0 and 9, describing which digit a given image is of. In this assignment, we regard the labels as one-hot vectors, i.e. 0 in most dimensions, and 1 in a single dimension. In this case, the ?-th digit will be represented as a vector which is 1 in the ? dimensions. For example, 3 would be [0,0,0,1,0,0,0,0,0,0]. The assignment aims to build NNs for classifying handwritten digits in the MNIST database, train it on the training set and test it on the test set. Please read the following comments and requirements very carefully before starting the assignment: 1. The assignment is based on the content of Labs. 2. In Lecture 1, we talked about the use of training set, validation set and test set in machine learning. In the assignment, you are asked to train the NN on the training set and test the NN on the test set, instead of doing the two steps on the same data set as what was done in Lab 5. You do NOT need the validation set in the assignment. 3. In the assignment, the performance of a NN is measured by the its prediction accuracy in classifying images from the test set, i.e. number of the correctly predicted images / number of the images in the test set. 4. You are asked to model THREE NNs by changing the architecture. For example, you may change the number of layers, use different type of layers, and try various activation layers. 5. You are encouraged to repeatedly train and test your NNs with different parameter setting, e.g. learning rate. 6. Your report MUST at least contain the following content a. Names and student numbers of all group members;

Read More »

Grab your Discount!

25% Coupon Code: SAVE25
get 25% !!