Instructions
Module 4 – Contingency Tables
{{Student Name}} 2020-08-24
I am giving you both the raw data and the answer for the report section. Your goal is to: * Make a rmd file that knits to the PDF answer * Answer the questions in the analysis section * Do not hard code the report section * Hard coding the analysis section is allowed Please match the report and analysis sections as close as you can.
Please submit both the rmd and your knitted PDF to the link on Canvas. The data file is on Canvas as data.csv
Remove the Instructions section from your final Knit.
Analysis
1. Table 1 has a ¦Ö2 value of _________ and is/is not significant.
2. The Odds Ratio for Table 1 tells us that _________.
3. Table 2 has a ¦Ö2 value of = _________ and is/is not significant.
4. The Odds Ratio for Table 2 tells us that _________.
5. The Odds Ratios for the two tables seem to be at odds. This can be explained as _________.
Tables
Table 1: Company wide hiring
Hired
Not Hired
Total
% Hired
1655
2062
3717
44.5
769
1765
2534
30.3
Male Female
Odds(Hired) 0.803 0.436
1
Table 2: Division based hiring
Hired
Not Hired
Total
% Hired
Male
707
432
1139
62.1
Female
123
26
149
82.6
Male
488
286
774
63.0
Female
23
11
34
67.6
Male
166
283
449
37.0
Female
279
540
819
34.1
Male
191
385
576
33.2
Female
181
337
518
34.9
Male
73
191
264
27.7
Female
130
413
543
23.9
Male
30
485
515
5.8
Female
33
438
471
7.0
A B C D E F
Odds(Hired) 1.637 4.731 1.706 2.091 0.587 0.517 0.496 0.537 0.382 0.315 0.062 0.075
2