Question
Please show work/explain using R code.
Question 6 Your answer is INCORRECT In a certain city, there are about one million eligible voters. A simple random sample of size 10,000 was chosen to study the relationship between gender and participation in the last election. The results were Men Women Voted 2799 3322 Didnt Vote 1499 2380 If we are testing for a relationship between gender and participation in the last election, what is the test statistic? a) x2 30.308 b) X2 : 48617 c) x2-72.925 d) z -15.854 e -8.038
0 0
Add a comment Improve this question Transcribed image text
Answer #1

H1-c(2799,3322,1499,2380) data matrix(H1,nrow-2,byrow-T) data 1,1 2799 3322 [2,1 1499 2380 > colname-c(MEN, WOMEN) > rown ame=c( VOTED, Didnt voted) dinnames(data)-list (rowname, colname) data MEN WOMEN 2799 3322 Didnt voted 1499 2380 VOTED >rows um=apply(data, 1, sum) ToWsUm VOTED Didnt voted 3879 colsum-apply (data,2, sum) 6121 MEN WOMEN 4298 5702 ?outer sun(data) [1] 10000 E-outer (rowsum, colsum,)/sum(data) MENWOMEN 2630.806 3490. 194 Didnt voted 1667.194 2211.806 VOTEDtherefore option B is correct.

Add a comment
Know the answer?
Add Answer to:
Please show work/explain using R code. Question 6 Your answer is INCORRECT In a certain city,...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • According to exit polls, the voting "gender gap" was 22 points in the 2016 House of...

    According to exit polls, the voting "gender gap" was 22 points in the 2016 House of Representatives election; that is, women voted for Democrats by 10 percentage points, and men voted for Republicans by 12 percentage points. Political scientists are curious to see if this gap holds- or increases- in 2018, but statisticians might be more interested in the processes behind exit polling and the rellabllity of thelr results. When conducting exit polls, pollsters will randomly select a certain number...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT