Question: Note: Use R-studio 3. The data BGSall in the alr4 package contains information on n = 136 children in the Berkeley Guidance study, including heights

 Note: Use R-studio 3. The data BGSall in the alr4 package
Note: Use R-studio

3. The data BGSall in the alr4 package contains information on n = 136 children in the Berkeley Guidance study, including heights at ages 9 and 18 (HT9 and HT18), and gender (Sex 0 for male, 1 for female). Consider the regression of HT18 on HT9 and the grouping factor Sex (a) Draw the scatterplot of HT18 versus HT9, using a different color for males and females. Comment on the information in the graph about an appropriate mean function for these data. (b)Assuming a first-order model with one binary predictor and one quantitative predictor (parallel regression model) is adequate, estimate a 95% confidence interval for the difference between males and females. For the parallel regression model, this is the difference in the intercepts of the two groups (c) Add the two parallel estimated regression lines to the scatterplot in part (a) with the colors you used in part (a)

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