## 4.9 Exercises

What is the interpretation of the intercept \(\beta_0\) in a simple linear regression with an uncentered continuous predictor? With a centered continuous predictor? With a categorical predictor?

What is the interpretation of the slope \(\beta_1\) in a simple linear regression with a continuous predictor? Does centering affect this interpretation?

In a simple linear regression with a categorical predictor with \(L\) levels, what is the interpretation of the coefficients \(\beta_1, ..., \beta_{L-1}\)?

In a simple linear regression with a continuous predictor, what does a point \((x,y)\) on the regression line represent?

**For Exercises 5-12, use the Digitalis teaching dataset ( dig_rmph.rData, see Appendix A.6) to answer questions related to the following research question: Is there a significant association between the predictor body mass index (BMI) and the outcome heart rate (HEARTRTE)? Fit the appropriate regression model and then answer the questions.**

What kind of predictor is BMI, continuous or categorical?

Visualize the relationship (plot the outcome vs. the predictor with the regression line included).

When you fit the regression model, how many observations were removed due to missing values?

What proportion of the variation in heart rate is explained by BMI?

Provide the effect estimate (regression slope), its 95% CI, p-value, and a statement regarding whether the association is statistically significant.

Example 4.1 concluded “On average, for every 1-cm difference in waist circumference, adults differ in mean fasting glucose by 0.0278 mmol/L. Provide the corresponding Interpretation of the regression slope in for the regression of heart rate on BMI. Be careful to not imply causality as this is cross-sectional data.

What is the predicted mean heart rate (and 95% CI) for those with a BMI of 20 kg/m

^{2}? For those with a BMI of 35 kg/m^{2}?Among those with a BMI of 20 kg/m

^{2}, within what interval do we expect 95% of heart rate values to fall? Among those with a BMI of 35 kg/m^{2}?

**For Exercises 13-17, use the Digitalis teaching dataset ( dig_rmph.rData, see Appendix A.6) to answer questions related to the following research question: Does heart rate (HEARTRTE) differ significantly between treatment group (TRTMT = Placebo, Digoxin)? Fit the appropriate regression model and then answer the questions.**

Visualize the relationship (plot the outcome vs. the predictor, along with the mean at each level and a line connecting the means).

Provide the p-value for the test of this association and state whether the association is statistically significant.

What is the mean and 95% CI for the difference in heart rate between those in the Digoxin group and those in the Placebo group? Is this difference statistically significant?

What is the predicted heart rate (and 95% CI) for each of the treatment groups?

For each treatment group, within what interval do we expect 95% of heart rates to fall?

**For Exercises 18-19, use the UN Human Development Data ( unhdd2020.rmph.rData, see Appendix A.2). Use the methods in this chapter to answer each research question.**

What is the association between the outcome life expectancy at birth (years) (

`life`

) and expected years of schooling (years) (`educ_expected`

)?How does the Gender Inequality Index (

`gii`

) (GII) differ between Human Development Index (HDI) groups (`hdi_group`

)?

**For Exercises 20-21, use the CAMP teaching dataset camp_0_48_rmph.rData (see Appendix A.6).**

Does post-bronchodilator Forced Expiratory Volume at 1 second (FEV1) (

`POSFEV0`

) differ significantly between treatment groups (Budesonide, Nedocromil, Placebo) (`TG`

)?Following up on the previous Exercise, estimate the two treatment effects (Budesonide vs. Placebo, Nedocromil vs. Placebo) along with their 95% confidence intervals and p-values.