DS4PS / cpp-525-fall-2020

http://ds4ps.org/cpp-525-fall-2020/
1 stars 0 forks source link

Q2c #9

Closed JayCastro closed 3 years ago

JayCastro commented 4 years ago

Bit confused on how to exclude the intercept.

JayCastro commented 4 years ago

sorry should have mentioned this is Lab3

lecy commented 4 years ago

In R it is just:


lm( y ~ x + f )       # regular regression - one level of factor f dropped
lm( y ~ x + f - 1 )   # no intercept - all levels of f retained