Lab 3 - assignment.docx

pdf

School

University of Calgary *

*We aren’t endorsed by this school

Course

311

Subject

Sociology

Date

Jun 6, 2024

Type

pdf

Pages

5

Uploaded by UltraPuppyMaster1135

Report
SOCI 311 Spring 2024 Lab #3 Marked out of 100 This and all future lab assignments should be submitted to the appropriate folder in dropbox through D2L by 11:59 pm on Wednesday, May 29 th . The appropriate folder will be given the name of the lab (i.e., the folder for lab 3 will be named “Lab 3.”). All assignments should be submitted in PDF or Word format . Assignments not submitted in PDF or Word format will be considered not submitted. When questions ask for explanations, all answers should be in the form of complete sentences with appropriate grammar, spelling, and punctuation. Anything more than superficial resemblance between labs will be taken as an indication of academic impropriety. 1. Respondents in the MIDUS were asked a question about their overall life satisfaction. The question was, “Using a scale from 0 to 10 where 0 means ‘the worst possible life overall’ and 10 means ‘the best possible life overall, how would you rate your life overall these days?” The name of the variable for responses to this question is “RA1SR1.” This variable includes some missing values. Therefore, generate a new variable to drop the missing values, and name it ‘satisfaction’. This new variable should include only values from 0 to 10. Paste a screenshot of your tabulation of this variable with the syntax for before and after recoding. Also, since a score of 5 indicates about the mid-point in life satisfaction, what percentage of the sample indicated a score of more than 5 for life satisfaction? Make sure to state your answer in a complete sentence. 35 MARKS *Tabulation of Self rated satisfaction of life* tab RA1SR1 *Tabulation of self rated satisfaction of life WITHOUT labels tab RA1SR1, nol *Generate variable 'satisfaction' for values 0-10 when rating satisfaction of life to get rid of missing variables* gen satisfaction=RA1SR1 if RA1SR1>-1 & RA1SR1<11 *Tabulation of 'satisfaction' variable* tab satisfaction
88.8% of respondents recorded a satisfaction of more than 5. We can calculate this by taking the total percentage of 100 and subtracting the cumulative percentage of 5. This will show the remaining percentage who have rated above 5. (100-11.20=88.80) 2. An additional measure in the MIDUS asked, “How difficult is it for you (and your family) to pay your monthly bills?” The variable for responses to this question is called “RA1SH9.” This is an ordinal level variable but use this to generate a new, dichotomous variable and name it ‘badbills’. Recode this new variable, so that those who answered ‘very difficult’ and ‘somewhat difficult’ are combined into one category and those who answered ‘not very difficult’ and ‘not at all difficult’ are combined into another separate category. Then, label the first category as ‘Difficulty’ and the second category as ‘No difficulty’. What percentage of the sample reported difficulty paying monthly bills? Make sure to state your answer in a complete sentence. Also, don’t forget to paste your syntax and a screenshot of your tabulation output from Stata for before and after recoding. 35 MARKS
*Tabulation of difficulty paying monthly bills* tab RA1SH9 *Tabulation of difficulty paying monthly bills WITHOUT labels* tab RA1SH9, nol *Generate new variable 'badbills'* gen badbills=RA1SH9 *Recoding 'badbills' into a dichotomous variable* recode badbills (1/2=1) (3/4=2) (else=.) *Labeling the categories of variable 'badbills'* label define badlabel 1"Difficulty" 2"No difficulty" label values badbills badlabel *Tabulation of 'badbills' before and after coding* tab1 RA1SH9 badbills
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
36.74% of the people reported difficulty paying monthly bills. 3. Suppose that researchers examine every mystery novel ever written. They find that the mean number of times characters in a novel say, “The butler did it!” is approximately normally distributed. The mean number of times characters say, “The butler did it!” is 9, with a standard deviation of 5. If you randomly choose a mystery novel, what is the probability that characters in the novel will say “The butler did it!” fewer than 3 times ? Make sure to show all work. 15 MARKS Z=3-9/5 Z=-1.2 Z table= 1151 x 100 = 11.51% The probability that the character will say “The butler did it” fewer than 3 times is 11.51% or a proportion of 0.1151.
4. In a distribution of approximately normally distributed scores with a mean of 55 and a standard deviation of 4, which event is more likely: That a randomly selected score will be less than 49 or that a randomly selected score will be greater than 59? Make sure to show all work and provide a final answer in a complete sentence. 15 MARKS Z 1 = 49-55/4 Z 2 = 59-55/4 Z 1 = -6/4 Z 2 = 4/4 Z 1 = -1.5 Z 2 = 1 Z 1 Table = 0.0668 x 100= 6.68% Z 2 Table = 0.1587 x 100= 15.87% It is more likely to randomly select a score greater than 59 rather than less than 49 as 15.87% is greater than 6.68%.