Skip to content
Prev 198810 / 398506 Next

for parameter 'keep' in 'step'

Wenxin Liu wrote:
You're obviously not defining a keep() function.
Use the scope= argument:

fm <- lm(y ~ X0 + X1 + X2 + X3 + X4)
sfm <- step(fm, scope = list(lower = ~ X0))

See an example in ?stepAIC in the MASS package or the
book referenced there.

  -Peter Ehlers