Question: Create two new columns in brf _ part 1 with binary data. For any health level of very good or excellent, set the value to

Create two new columns in brf_part1 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.

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 Programming Questions!