Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in exercise 3 in chapter 24.3 #583

Open
andrewyimingchen opened this issue Jul 22, 2020 · 0 comments
Open

Error in exercise 3 in chapter 24.3 #583

andrewyimingchen opened this issue Jul 22, 2020 · 0 comments

Comments

@andrewyimingchen
Copy link

Hi, jrnold,
I think there is a slight error in exercise 3 in chapter 24.3
https://jrnold.github.io/r4ds-exercise-solutions/model-building.html#exercise-24.3.3
"Comparing models, mod3 has a lower R^2 and regression standard error, ^σ, despite using fewer variables."
From the following code and result, wouldn't it be mod3 has a lower R^2 but higher sigma(regression standard error)?
glance(mod3) %>% select(r.squared, sigma, AIC, df)
#> # A tibble: 1 x 4
#> r.squared sigma AIC df
#>
#> 1 0.736 47.4 3863. 9

glance(mod2) %>% select(r.squared, sigma, AIC, df)
#> # A tibble: 1 x 4
#> r.squared sigma AIC df
#>
#> 1 0.757 46.2 3856. 21

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant