Run the standard setup from the Student Overview before starting this assignment.
Do babies with longer gestation lengths tend to have higher birth weights?
| Variable | Meaning | Type |
|---|---|---|
bwt |
Baby’s birth weight in ounces | Quantitative outcome |
gestation |
Length of pregnancy in days | Quantitative predictor |
bwt quantitative or categorical?gestation quantitative or categorical?plot(babies$gestation, babies$bwt,
xlab = "Gestation Length (days)",
ylab = "Birth Weight (ounces)",
main = "Birth Weight by Gestation Length",
pch = 16)
abline(lm(bwt ~ gestation, data = babies), lwd = 2)The correlation coefficient r is itself an effect size. A larger absolute value of r indicates a stronger relationship.
cor.test(babies$gestation, babies$bwt, use = "complete.obs")Record:
| Statistic | Value |
|---|---|
| Correlation, r | |
| Effect size interpretation (small ≈ .10, medium ≈ .30, large ≈ .50) | |
| p-value | |
| 95% confidence interval for r |
model_gestation <- lm(bwt ~ gestation, data = babies)
summary(model_gestation)R² is the effect size for regression. It tells you what proportion of the variance in birth weight is explained by gestation length.
Record:
| Output value | Meaning | Value |
|---|---|---|
| Intercept | Predicted birth weight when gestation = 0 | |
Slope for gestation |
Predicted change in birth weight per additional day of gestation | |
p-value for gestation |
Whether the slope is statistically different from 0 | |
| R² | Proportion of variance in birth weight explained by gestation |
Predicted birth weight = ____ + ____ × (gestation)
| Gestation length | Predicted birth weight |
|---|---|
| 250 days | |
| 270 days | |
| 290 days |
A simple linear regression was used to test whether gestation length predicted birth weight. Gestation length was a [significant / non-significant] predictor of birth weight, b = ____, t(____) = ____, p = ____. The model explained ____% of the variance in birth weight, R² = ____. Each additional day of gestation was associated with a predicted ____ ounce [increase / decrease] in birth weight.
Note: R² is reported regardless of whether the result is statistically significant.