Untitled document (8)

pdf

School

University of Victoria *

*We aren’t endorsed by this school

Course

MISC

Subject

Sociology

Date

Jan 9, 2024

Type

pdf

Pages

5

Uploaded by DrWombat743

Report
Sociology 271 Lab Assignment #2 Due: Feb 14, 2020 by 4pm For the first part of the assignment you will need to complete a small dataset called Assign2_Survey . 1a). The dataset contains 12 variables with 50 respondents/cases. First, open up the data file and go to the variable view tab . You need to complete the “codebook” for the dataset, filling in information in 3 columns: Label, Values, and Measure . The information on the variables is as follows: 1. Gender (Respondent’s Gender): m = male, f = female (string) 2. Age (Age of Respondent) 3. UG_GPA (Undergrad GPA) 4. Distance_Home (Distance from your home to university) 5. Social Media (Hours on social media per week) 6. Pub (Number of visits to pub/bar/night club per week) 7. Vegetarian (I am a vegetarian): n = No, y = Yes (string) 8. Political_Affiliation (What is your political affiliation?) : d = Democrat, i= Independent, r = Republican (string) 9. Spiritual (How spiritual are you?) 0 = Not at all spiritual, 1 = Somewhat spiritual, 2 = Fairly spiritual, 3 = Very spiritual 10. Legalize_Abortion (Do you think abortion should be legalized?) y = Yes, n = No 11. Legalize_Pot (Do you think marijuana should be legalized?) 1 = Yes, 2 = No 12. Postlife (Do you believe in life after death?) 1 = Yes, 2 = No, 3 = Unsure b). Take a screen shot of the Variable View tab once it is completed and insert here. 2. Now open up the data view tab and enter the information below for 20 additional survey respondents, starting at person 51. Res p Gen der Ag e UG _ GP A Dist_ Hom Soc ial Pub Ve g Pol_ Affil Spiri tual Legal_ Abort Legal _Pot Postl ife 51 m 34 8.2 15 7 1 n d 1 y 2 2
52 m 22 7.9 40 14 2 n d 0 n 1 2 53 f 23 7.8 50 12 3 n r 0 y 1 2 54 m 25 7.5 250 19 0 y r 2 n 1 3 55 f 28 6.9 320 15 3 y d 1 y 2 1 56 f 25 8.1 325 7 4 n r 3 y 2 1 57 m 24 7.5 650 21 2 n i 1 y 1 3 58 f 30 7.9 150 15 1 n d 0 y 1 3 59 m 33 7.3 620 12 5 n i 2 n 1 2 60 f 24 8.4 65 7 3 n d 3 y 1 3 61 f 23 7.8 650 18 6 y i 2 y 1 1 62 m 32 8.0 1500 7 2 n r 2 n 1 1 63 f 40 7.3 0 8 2 n r 1 n 2 1 64 f 29 7.9 300 5 1 y d 2 y 1 1 65 f 50 8.1 6 7 5 n d 1 y 2 3 66 f 22 8.3 80 14 2 y i 0 y 1 3 67 f 23 8.5 375 5 n r 3 n 2 1 68 m 26 7.9 200 21 1 y d 1 y 1 3 69 m 30 7.7 1 3 2 n i 3 y 2 1 70 f 24 8.3 112 15 3 n d 2 y 1 2 ** Make sure you save your dataset in your personal Documents folder or on your desktop as we will be using this dataset next week as well. 3. Based on the completed dataset: 1. What percentage of this sample is male? What is the frequency? 2. What is the level of measurement for the variable Vegetarian? What percentage are vegetarians? 3. What percentage is unsure about whether there is life after death? 4. What is the cumulative percentage of those “somewhat” and “not at all spiritual”?
5. What is the mode for political affiliation? What percentage falls in this category? 6. What percentage supports legalization of pot? 7. Generate a bar chart (with frequencies in the bars) for Postlife. What is the mode? Report the frequency and percent of this category. Insert the bar chart. 8. Generate a pie chart with percentages in the slices for Spiritual. Describe what the chart tells you. Insert the chart here. 9. Insert frequency table output for the variables: Vegetarian, Legalize Abortion and Legalize Pot. 4. Obtain measures of central tendency and measures of dispersion for Age, UG_GPA, Social Media, and Pub. Insert the statistics output table here. 1. Report the mean, range and standard deviation for Social Media hours per week. mean=10.88 range= 32-0= 32 standard deviation= 2. Discuss the distribution of UG_GPA . Support your answer with some statistics. 3. Generate a histogram for Age with the normal curve over it. Describe the variable’s distribution and dispersion. Is it normally distributed? Insert the histogram. 4. If someone goes to a pub/bar 6 times a week, what is their pubs Z score? 5. If an age Z score is +1.82, what is the age? 6. If someone has a GPA of 8.4, what is their GPA Z score? 5. Recode the variable Legalize_Abortion into a new variable Abort_R . Make n = 0 and y = 1. Make sure you complete the Values in the Variable View tab. Generate a bar chart for the new variable with percentages in the bars and insert here. 6. Transform the variable Gender using recode into same variable, making it a numeric variable instead of string. Code male = 1 and female = 2 and include the values and labels in Variable View. Generate frequency output of the recoded variable and insert here. 7. Using the appropriate procedure, select a subset of the sample– select females who are 30 and younger. Once you have selected this subset, obtain frequency information on Spiritual, Vegetarian and Postlife as well as the appropriate statistics for the variables Age, Social Media, UG_GPA and Pub . 1. What is the sample size (N) for this reduced sample based on the frequency information? 2. What percentage are vegetarians? How does this compare to Q3b?
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help
3. What percentage is unsure about whether there is life after death? How does this compare to Q3c? 4. What is the cumulative percentage that are somewhat and not at all spiritual? How does this compare to Q3d? 5. How have the mean and standard deviation for Age changed compared to Q4? Why is that? 6. Discuss the distribution and dispersion for UG_GPA, reporting the relevant statistics. 7. What is the average hours for Social Media use per week? 8. On average, does this group go more or less frequently to the pub compared to the larger sample? Support your answer with the appropriate statistic(s). * Take off the selection criteria (subset of data) before completing the next question. * 8. Recode Age from a continuous variable into a categorical one with five (5) categories: 1) 21-25 years, 2) 26-30 years, 3) 31-35 years, 4) 36-40 years, 5) 41 and older. Make sure you include the Value labels for the newly recoded variable in the Variable View tab. 1. Generate a frequency table of the newly recoded variable ( Age_5 ) and insert here. 2. Create a bar chart for this variable with percentage information in the bars and insert here. 3. What is the mode/modal category for age? How many people are in this group? 4. What percentage of the sample is between 26-30 years old? 5. How many people are 41 or older? 6. What percentage of this sample is 30 or less? The following are calculation questions (SPSS not required). Please show your work: 9. If you roll a die three times, what is the probability of getting a 2 each time? (1/6)x( )x( ) =1/126 or 0.00462963 10. Here are a set of score: 7 2 6 1 9 3 5 2. If we were to randomly select one of the scores, what is the probability this score will be: 1. Greater than 4? 4/8 or ¼ or 25% 2. Less than 8? ⅞ or 87.5%
3. An odd number? 11. A fixed price menu offers a choice of 4 appetizers, 3 main courses and 4 desserts. If a tree diagram is used to list all possible meal combinations from the menu, how many options are there? (you don’t have to draw the tree diagram) There are 52 branches and 36 options 4x3x3=36