swirldev / swirl_courses

:mortar_board: A collection of interactive courses for the swirl R package.
http://swirlstats.com
Other
4.32k stars 7.24k forks source link

Various small quirks in Regression Models #54

Open WilCrofter opened 10 years ago

WilCrofter commented 10 years ago

Multivar examples 3: (note new Omnitest will fix this one)

summary(lm(Fertility ~ Agriculture, data = swiss))
# vs
summary(lm(Fertility ~ Agriculture, swiss))

Multivar examples 2:

summary(fit)$coefficient[,1]
# vs
summary(fit)$coef[,1]

Multivar examples 3:

colnames(hunger)
# is not considered correct while 
names(hunger)
WilCrofter commented 10 years ago

Should F be accepted as FALSE? E.g., pf(n/d, 2, 43, lower.tail = F) is rejected while pf(n/d, 2, 43, lower.tail = FALSE) is not.

In One regressor is missing in each model. In the expression for y (Point B,) Should the comma be after the close bracket?