Mark Yourself Question
A student fits fit <- lm(score ~ hours, data = study) on observational data from 40 students, where score is an exam mark out of 100 and hours is self-reported weekly study hours ranging from 3 to 22. The output of summary(fit) includes:
(Intercept) 52.40 Std. Error 3.05 hours 3.18 Std. Error 0.62 t value 5.13 Pr(>|t|) 8.84e-06 Multiple R-squared: 0.41
(a) Interpret the slope and the intercept in the units of the problem. (b) Compute the predicted score for a student reporting 10 hours. (c) Compute an approximate 95% confidence interval for the slope, using a critical value of 2.024. (d) State precisely what the p-value and the R-squared value do and do not establish here.
Unlock full course notes by signing up
Using R Software for Statistical Analysis: difficulty 3
A data frame df has a numeric column score and a factor column group with exactly two levels, recording independent participants assigned to one group each. Which call correctly compares the two group means?