Appex 15
STA 112 - Fall 2023
Part 1
- Copy the following template into RStudio Pro:
https://github.com/sta-112-f23/appex-15.git
Fit a model predicting
GPA
using high school gpa (HSGPA
) and verbal SAT score (SATV
). Save this asmodel1
Fit a model predicting
GPA
using high school gpa, verbal SAT score (SATV
), and math SAT score (SATM
). Save this asmodel2
.Fit a model predicting
GPA
using high school gpa, verbal SAT score (SATV
), math SAT score (SATM
), and number of humanities credits taken in high school (HU
). Save this asmodel3
.Conduct an “nested F test” comparing Model 1 to Model 2. What are the null and alternative hypotheses? Is model 2 significantly better than model 1?
Conduct a “nested F test” comparing Model 2 to Model 3. What are the null and alternative hypotheses? Is model 3 significantly better than model 2?
Choose AIC or BIC to compare models 1, 2, and 3. Rank the models.