Skip to content

In a formula, what is the interaction of the intercept and a factor?

3 messages · Brian Ripley, Kevin Wright

#
Try it for yourself:
(Intercept)
1            1
...

Or to do

'interact "1+x" with "group"'
(Intercept) x:groupA x:groupB
1            1        0        1
...

Note that you usually want to do '*' when you say 'interact with':
(Intercept)  x groupB x:groupB
1            1  1      1        1
...
On Tue, 31 May 2011, Kevin Wright wrote: