Skip to content

Latest commit

 

History

History
7 lines (7 loc) · 190 Bytes

File metadata and controls

7 lines (7 loc) · 190 Bytes

Model Selection

Actual Code
fit.full <- lm(Petal.Length ~ Species + Sepal.Length, iris)
fit.restricted <- lm(Petal.Length ~ Species, iris)
anova(fit.full, fit.restricted)