Skip to content

quadratic factor

2 messages · Lingbo Li, Simon Blomberg

#
To include a quadratic term, use I(Dor^2) instead of Dor^2. The problem
is that R interprets Dor^2 as a formula term ie the main effect as well
as the second-order interaction of Dor with itself (which is just Dor).
Using the I() construct tells R to treat the enclosed expression as a
mathematical expression.

Cheers,

Simon.
On Thu, 2008-08-14 at 21:30 -0700, Lingbo Li wrote: