Run the standard setup from the Student Overview before starting this assignment.
Do gestation length, maternal age, maternal weight, smoking status, and previous birth history together help predict a baby’s birth weight?
| Variable | Meaning | Type |
|---|---|---|
bwt |
Baby’s birth weight in ounces | Quantitative outcome |
gestation |
Length of pregnancy in days | Quantitative predictor |
age |
Mother’s age in years | Quantitative predictor |
weight |
Mother’s weight in pounds | Quantitative predictor |
smoke |
Smoking status; 0 = no, 1 = yes |
Categorical predictor |
par_bi |
Previous birth history; 0 = first-time mother,
1 = has given birth before |
Categorical predictor |
par(mfrow = c(2, 2))
plot(babies$gestation, babies$bwt,
xlab = "Gestation Length (days)",
ylab = "Birth Weight (ounces)",
main = "Gestation and Birth Weight",
pch = 16)
plot(babies$weight, babies$bwt,
xlab = "Maternal Weight (pounds)",
ylab = "Birth Weight (ounces)",
main = "Maternal Weight and Birth Weight",
pch = 16)
boxplot(bwt ~ smoke_bi, data = babies,
names = c("Non-smoker", "Smoker"),
ylab = "Birth Weight (ounces)",
main = "Smoking Status")
boxplot(bwt ~ par_bi, data = babies,
names = c("First-time", "Previous Birth"),
ylab = "Birth Weight (ounces)",
main = "Parity")
par(mfrow = c(1, 1))Multiple regression estimates the association between each predictor and the outcome while statistically controlling for the other predictors in the model.
model_multi <- lm(bwt ~ gestation + age + weight + smoke_bi + par_bi,
data = babies)
summary(model_multi)R² and adjusted R² are the effect sizes for multiple regression. R² is reported regardless of whether the overall model is statistically significant.
| Output value | Value |
|---|---|
| F statistic | |
| Model p-value | |
| R² | |
| Adjusted R² | |
| Effect size interpretation (small ≈ .01, medium ≈ .09, large ≈ .25) |
| Predictor | Estimate (b) | p-value | Interpretation |
|---|---|---|---|
| Gestation | |||
| Maternal age | |||
| Maternal weight | |||
| Smoking status | |||
| Parity |
par(mfrow = c(2, 2))
plot(model_multi)
par(mfrow = c(1, 1))
cooks_d <- cooks.distance(model_multi)
plot(cooks_d, type = "h",
main = "Cook's Distance",
ylab = "Cook's D")
abline(h = 4 / nrow(na.omit(babies[, c("bwt","gestation","age","weight","smoke_bi","par_bi")])),
lty = 2)A multiple regression was used to predict birth weight from gestation length, maternal age, maternal weight, smoking status, and parity. The overall model was [significant / not significant], F(____, ____) = ____, p = ____, R² = ____, adjusted R² = ____, indicating a [small / medium / large] effect. Gestation was a [significant / non-significant] predictor, b = ____, p = ____, indicating that each additional day of gestation was associated with a predicted ____ ounce change in birth weight, holding the other predictors constant. Smoking status was [significant / non-significant], b = ____, p = ____, indicating that babies whose mothers smoked were predicted to weigh ____ ounces [less / more] than babies whose mothers did not smoke, holding other predictors constant.