The General Social Survey conducted a poll of 668 adults in which the subjects were asked whether they agree that the government should prohibit smoking in public places. In addition, each was asked how many people lived in his or her household. The results are summarized in the following contingency table.
Test the hypothesis of independence. Use theα= 0.01level of significance.
State the null and alternate hypotheses.
Report the test statistic and the p-value
Household Size
1
2
3
4
5
Agree
73
109
48
37
37
No Opinion
31
52
29
20
18
Disagree
42
71
38
40
23
I don't know what I did wrong, am I perhaps using the wrong type of test?
Save $250 on SAS Innovate and get a free advance copy of the new SAS For Dummies book! Use the code "SASforDummies" to register. Don't miss out, May 6-9, in Orlando, Florida.
Need to connect to databases in SAS Viya? SAS’ David Ghan shows you two methods – via SAS/ACCESS LIBNAME and SAS Data Connector SASLIBS – in this video.