inst/snippet/concrete-models.R

concrete.lm0 <- lm(strength ~ limestone + water, concrete)
concrete.lm1 <- lm(strength ~ limestone, concrete)
concrete.lm2 <- lm(strength ~ water, concrete)
concrete.lm3 <- lm(strength ~ 1, concrete)
concrete.lm4 <- lm(strength ~ I(limestone + water), concrete)
concrete.lm5 <- lm(strength ~ -1 + limestone + water, concrete)

Try the fastR package in your browser

Any scripts or data that you put into this service are public.

fastR documentation built on May 1, 2019, 11:18 p.m.