Skip to content

SE for all fixed factor effect in GLMM

1 message · Rolf Turner

#
On 1/2/19 9:35 AM, Marc Girondot wrote:
Well, you only asked about the setting in which there was only one 
categorical predictor.  If there are, e.g. two (say "G" and "H") try

m2 <- glm(y ~ x + G:H + 0)

I would suggest that you learn a bit about how the formula structure 
works in linear models.

cheers,

Rolf Turner

P.S.  Your use of relevel() is redundant/irrelevant in this context.

R. T.