Skip to content
Prev 303011 / 398506 Next

Simple question about formulae in R!?

On Fri, Aug 10, 2012 at 7:36 AM, ONKELINX, Thierry
<Thierry.ONKELINX at inbo.be> wrote:
Note quite, I don't think: A*B is shorthand for A + B + A:B where A:B
is the 2nd order (interaction) term. The OP only had the 2nd order
term without the main effects.

OP: You almost certainly want A*B -- it's strange (though certainly
not impossible) to have good models where you only have interactions
but not main effects.

Cheers,
Michael