Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
# Which amongst the following models is better in terms of:
# R-Squared, Adj R-Squared, AIC and BIC
model1 <- lm(mpg ~ wt + hp, data=mtcars)
model2 <- lm(mpg ~ wt + cyl, data=mtcars)
model3 <- lm(mpg ~ qsec + hp, data=mtcars)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment