Skip to content
Prev 19513 / 20628 Next

Help with interpreting one fixed-effect coefficient

Look at the model I fitted, which INCLUDES the interaction, and notice that those combinations are NOT estimated.

Russ

-----Original Message-----
From: Simon Harmel <sim.harmel at gmail.com> 
Sent: Monday, September 27, 2021 11:10 AM
To: Lenth, Russell V <russell-lenth at uiowa.edu>
Cc: r-sig-mixed-models at r-project.org
Subject: Re: [External] Re: [R-sig-ME] Help with interpreting one fixed-effect coefficient

Thanks, Russ! There is one thing that I still don't understand. We
have two completely empty cells (boys in girl-only & girls in boy-only
schools). Then, how are the means of those empty cells computed (what
data is used in their place in the additive model)?

Let's' simplify the model for clarity:

library(R2MLwiN)
library(emmeans)

Form3 <- normexam ~ schgend + sex ## + standlrt + (standlrt | school)
model3 <- lm(Form3, data = tutorial)

emmeans(model3, pairwise~sex+schgend)$emmeans

 sex  schgend   emmean     SE   df lower.CL upper.CL
 boy  mixedsch -0.2160 0.0297 4055  -0.2742 -0.15780
 girl mixedsch  0.0248 0.0304 4055  -0.0348  0.08437
 boy  boysch    0.0234 0.0437 4055  -0.0623  0.10897
 girl boysch    0.2641 0.0609 4055   0.1447  0.38360<-how computed?
 boy  girlsch  -0.0948 0.0502 4055  -0.1931  0.00358<-how computed?
 girl girlsch   0.1460 0.0267 4055   0.0938  0.19829





On Sun, Sep 26, 2021 at 8:22 PM Lenth, Russell V
<russell-lenth at uiowa.edu> wrote: