Skip to content
Prev 31695 / 398506 Next

[R ] Query : problems with the arithmetic operator "^" withfunction "lme" and "lmList"

Ludovic
Respecify your model formula as:

fm2Oxboys.lis<-lmList(height ~ age + I(age^2),Oxboys)

Note the use of I() around the "age^2", which enables R to interpret
the transformation of age squared properly.

See:

?formula and ?I

Hope that helps.

Marc Schwartz