inst/snippet/airp-modcomp2.R

# build a variable that makes the model easier to describe
airp$x <- with( airp, ((loc==2) + 0.5*(loc==3)) )
model3 <- lm(pollution~ 1 + x, airp)
anova(model3,model)

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.