Instructions
Module 5 – Mosaic Displays
{{Student Name}} 2020-08-31
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
There [is]/[is not] a statistical relationship between Treatment and Improved (χ2 = ??? p ???). There [is]/[is not] not evidence to suggest that Gender impacts this joint association (χ2 = ??? p ???). [Like- wise]/[Conversely], there [is]/[is not] evidence to suggest that Race impacts this joint association (χ2 = ??? p ???).
1
Tables
Improved
No
Yes
Pearson residuals:
2.4 2.0
0.0
−2.0 −2.4
p−value = 1.4233e−05
40
9
18
29
Improved
No
Yes
8
1
26
14
8
10
22
Female
Male
Female
Male
Pearson residuals:
1.6
0.0
−1.2
p−value = 0.067164
2
7
Treated
Placebo
Treatment
Gender
Treatment
Treated Placebo
Improved
No Yes
9
12
9
10
2
4
3
8
2
4
4
8
9
Black Latino
Other
White
Black
Latino
Other White
Pearson residuals:
1.3
0.0
−1.5
p−value = 0.39862
5
7
3
Treated
Placebo
Treatment
Race