Question: The file FluShotData.txt has simulated flu shot data from a study on the effect of age and a health awareness index on a persons decision
The file FluShotData.txt has simulated flu shot data from a study on the effect of age and a health awareness index on a person’s decision to get a flu shot. Use R to complete the following.
(a) Fit a two-predictor logistic regression model to the data, and test the significance of the two predictors at level of significance 0.05.
(b) Fit the logistic regression model that includes the interaction of the two predictors to the model of part (a). Construct 95% CIs for the regression coefficients.
(c) Using the model with the interaction term, give an estimate of the probability that a 35-year-old person with health awareness index 50 will get the flu shot.
Do the same for a 45-year-old person with index 50.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
