Instructions
Module 6 – Logistic Regression
{{Student Name}} 2020-09-28
I am giving you both the raw data and the rendered Tables and Figures section. Your goal is to:
• Make a rmd file that knits to the HTML answer
• Answer the questions in the Analysis section by selecting the correct [] and filling out the ______ • Hard coding the Analysis section is allowed
• Match the presented tables and/or figures in the Tables and Figures
• Do not hard code the Tables and Figures section
Please match the Analysis and Tables and Figures sections as close as you can. Please submit both the rmd and your knitted HTML to the link on Canvas.
The data file is on Canvas as data.csv
Remove the Instructions section from your final Knit.
Analysis
1. Height [is]/[is not] a significant predictor of Improved (β = ______, p = ______).
2. For each cm in Height, the Odds of the subject’s symptoms [improve]/[degrade] by ______ %.
3. Weight [is]/[is not] a significant predictor of Improved (β = ______, p = ______).
4. For each kg in Weight, the Odds of the subject’s symptoms [improve]/[degrade] by ______ %.
5. Sex [is]/[is not] a significant predictor of Improved (β = ______, p = ______).
6. Males show an [increase]/[decrease] in the Odds of the subject’s symptoms by ______ %.
7. When looking at Weight, Height, Sex, and the interaction of Weight and Height the following terms
are significant
• [name of term 1] (β = ______, p = ______) • …
• [name of term 1] (β = ______, p = ______)
8. When comparing the two models from last week and the two from this week on AIC, the ______ model is the best.
1
Tables and Figures
1.00
0.75
0.50
0.25
0.00
150
175 200
Height
1.00
0.75
0.50
0.25
0.00
40 60 80 100 120
Weight
2
Improved Improved
1.00
0.75
0.50
0.25
0.00
Sex
Female
Male
150 175 200
Height
3
Improved
1.00
0.75
0.50
0.25
0.00
Sex
Female
Male
40 60 80 100 120
Weight
4
Improved