df <- data.frame(height = c(69, 74, 77, 60, 62),
size = c(11, 10.5, 12, 9.5, 9))
df height size
1 69 11.0
2 74 10.5
3 77 12.0
4 60 9.5
5 62 9.0
Height vs. Shoe Size
You will:
Form a group of 4 or 5. (This is your sample size!)
Collect your data. Each person will share their height and shoe size!
Make a R data frame. (Replace my numbers with your data!)
df <- data.frame(height = c(69, 74, 77, 60, 62),
size = c(11, 10.5, 12, 9.5, 9))
df height size
1 69 11.0
2 74 10.5
3 77 12.0
4 60 9.5
5 62 9.0
# (a) Plot your data. Height on the x-axis, Shoe Size on the y-axis.
plot(x = ______, y = _______)# (b) Fit the simple linear regression model
model <- lm(____ ~ ____)
# (c) Draw the fitted regression line.
abline(______)# (d) Obtain the estimated slope. What does it mean in context? Is the effect statistically significant?