Question: Create a new dataframe named `brf_Q9` based on `brf_Q7` with two new columns with binary data. For any health level of very good or excellent,

Create a new dataframe named `brf_Q9` based on `brf_Q7` with two new columns with binary data. For any health level of very good or excellent, set the value to 1; otherwise, a 0. Call this `binHealth`. For any person attending a checkup within the past year, set to a value of 1; otherwise, 0. Call this `binCheckup`. With the updated dataframe, perform a logistic regression to predict the likelihood of an individual's general health being very good or excellent based on `FRTDAY` and `binCheckup.` Store the summary of the regression coefficients in `Q9 in R

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Mathematics Questions!