contingency tables and goodness of fit tests

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

contingency tables and goodness of fit tests

tofumonarch
This post has NOT been accepted by the mailing list yet.
given data set:
MarijuanaUse Alcohol Cigarette Gender Race
405 Yes Yes Female White
13 Yes No Female White
1 No Yes Female White
1 No No Female White
268 Yes Yes Female White
218 Yes No Female White
17 No Yes Female White
117 No No Female White
453 Yes Yes Male White
28 Yes No Male White
1 No Yes Male White
1 No No Male White
228 Yes Yes Male White
201 Yes No Male White
17 No Yes Male White
133 No No Male White
23 Yes Yes Female Other
2 Yes No Female Other
0 No Yes Female Other
0 No No Female Other
23 Yes Yes Male Other
19 Yes No Male Other
1 No Yes Male Other
12 No No Male Other
30 Yes Yes Male Other
1 Yes No Male Other
1 No Yes Male Other
0 No No Male Other
19 Yes Yes Male Other
18 Yes No Male Other
8 No Yes Male Other
17 No No Male Other


how do I make a contingency table that looks like this?

also how do I go from there to here?