# Question & Answer: Load "survey" data from MASS library a. Can you use R to generate the following contingency table "Sex" by "W.Hnd"? b. What is the RR assuming "Sex" is th…..

Load “survey” data from MASS library a. Can you use R to generate the following contingency table “Sex” by “W.Hnd”? b. What is the RR assuming “Sex” is the exposure variable? c. Can you test whether gender and handedness are independent?

Don't use plagiarized sources. Get Your Custom Essay on
Question & Answer: Load "survey" data from MASS library a. Can you use R to generate the following contingency table "Sex" by "W.Hnd"? b. What is the RR assuming "Sex" is th…..
GET AN ESSAY WRITTEN FOR YOU FROM AS LOW AS \$13/PAGE

A :     the hypergeometric distribution models the partnership process this way. imagine a box with 235 slips of paper, one for each candidate. Male is written on 118 of them while female is written on the other 117. if the partnership process is sex-blind, the number of men and women among the new partners should be similar to what would result from drawing 5 slips at random from the box. The hypergeometric distribution gives the probability of drowing specific numbers of males and females when 5 slips are drawn at random from a box containing 118 slips marked males and 117 slips marked females. those are the values in the line above labeled “probability”.

Risk in using left hand: Risk= (10/10+7)

Risk in using right hand: Risk= (108/108/110)

B:  The ratio of these two probabilities R1/R2 is the relative risk or risk ratio.

RR = LF/(LF+RF)/LM/(LM/RM).

= 7/(7+110)/10(10+108)

C:     Yes based on the about to test gender and handedness are independent