Run the standard setup from the Student Overview before starting
this assignment.
Project Goal
In this project, you will use the Baby Dataset to answer a broad
research question:
What factors are associated with birth weight?
You will not simply run one statistical test. Instead, you will use
several analyses to build a careful, evidence-based interpretation.
Required Skills
Your project should show that you can:
identify variables,
choose appropriate statistical analyses,
visualize data before testing,
interpret R output,
report results scientifically including effect sizes,
explain what can and cannot be concluded.
Dataset Reminder
Variable
Meaning
bwt
Baby’s birth weight in ounces
gestation
Length of pregnancy in days
par_bi
0 = first-time mother, 1 = has given birth
before
age
Mother’s age in years
age_group
1 = teens, 2 = 20s, 3 =
30s+
height
Mother’s height in inches
weight
Mother’s weight in pounds
smoke
0 = did not smoke during pregnancy, 1 =
smoked during pregnancy
Part 0: Pre-Analysis Plan
Complete this section BEFORE opening R or running any
code. Once you have seen the data or output, this step cannot
be done honestly.
Professional researchers often register their hypotheses and analysis
plans before collecting or analyzing data — a practice called
pre-registration. It prevents a common bias called
HARKing (Hypothesizing After Results are Known): reporting a
finding as if it were predicted when it was actually discovered after
looking at the data. This project asks you to do a lightweight version
of the same thing.
Below, write your predictions in advance. There are no right
or wrong answers — you are graded on whether you made genuine, reasoned
predictions, not on whether they turn out to be correct.
P1. Gestation and birth weight
Do you expect longer gestation to be associated with higher or lower
birth weight? Explain your reasoning in one sentence.
Do you expect the association to be weak, moderate, or strong?
Why?
P2. Smoking status and birth weight
Do you expect smoking to be associated with higher or lower birth
weight (or no difference)? Explain.
Do you expect the effect to be small, medium, or large by Cohen’s
conventions?
P3. Maternal age group and birth weight
Do you expect birth weight to differ across teen, 20s, and 30s+
mothers? In what direction, if any?
Which age group do you predict will have the highest mean birth
weight?
P4. Multiple regression
Which single predictor do you think will account for the most
variance in birth weight once all predictors are in the model together?
Explain your reasoning.
Do you expect smoking to remain a significant predictor when
gestation length is also in the model? Why or why not?
P5. Reflection (complete AFTER you have run the
analyses)
Come back to this section after finishing Parts 1–5 and answer:
Which of your predictions were correct? Which were wrong?
If you had seen the data first, do you think you might have
“predicted” a different outcome? What does this tell you about why
pre-registration matters in research?
Part 1: Understand the
Dataset
Load and clean the dataset using the standard setup.
Inspect the variables with str() and
summary().
Create at least two visualizations.
Report descriptive statistics for birth weight (mean, SD,
range).
Identify one possible outlier or unusual pattern.
Part 2:
Relationship Between Gestation and Birth Weight
Use correlation or simple linear regression.
Report:
visualization,
r or regression slope,
p-value,
effect size (r for correlation; R² for regression),
plain-language interpretation.
Part 3: Smoking Status
and Birth Weight
Use an independent-samples Welch t-test.
Report:
group means and standard deviations,
t statistic and degrees of freedom,
p-value,
95% confidence interval for the mean difference,
Cohen’s d and effect size interpretation,
plain-language interpretation,
caution about causation and possible confounding.
Part 4: Maternal Age
Group and Birth Weight
Use one-way ANOVA.
Report:
group means and standard deviations,
F statistic and degrees of freedom,
p-value,
η² and effect size interpretation,
post-hoc results if the overall ANOVA is significant,
plain-language interpretation.
Part 5: Multiple Regression
Recommended model:
model <-lm(bwt ~ gestation + age + weight + smoke_bi + par_bi, data = babies)summary(model)
Report:
overall model F statistic and p-value,
R² and adjusted R² with effect size interpretation,
coefficients and p-values for each predictor,
plain-language interpretation of significant predictors.
Final Scientific Summary
Write a final summary paragraph that includes:
The broad research question.
The most important descriptive pattern.
The result for gestation and birth weight (with effect size).
The result for smoking and birth weight (with Cohen’s d).
The result for maternal age group and birth weight (with η²).
The result of the multiple regression model (with R²).