Skip to content
Prev 8145 / 20628 Next

How to use nlmer on a dataset with multiple fixed and random effects

Lauren Hooton <lauren.hooton at ...> writes:
A quick question: can you use a quadratic function of one or
more of your continuous predictors in your model?  That is nonlinear
in terms of the original predictor, but it is still a linear *model*
(i.e. it is linear in terms of the parameters of the model).  You can
use either (e.g.) Pressure + I(Pressure^2), or (more numerically
stable and statistically sounder but possibly harder to interpret)
poly(Pressure,2) to add a quadratic term in Pressure ...

  (Sorry if this isn't relevant, I'm posting in a hurry)