Skip to content
Prev 1547 / 20628 Next

lme4 vs. HLM (program) - differences in estimation?

Thanks for your fast reply,

your right, I missed that in my explanation: Raudenbush et al. enter  
the socioeconomic status (ses) group centered into their model.
Therefore I calculated that group centered variable and called it  
ses.gmc (gmc = group mean centered; [I just recognize that this notion  
is ambiguous to "grand mean centered...])

# group-centering of ses (as R&B do ...)
# ses.gm = group mean
# ses.gmc = ses [group mean centered]

gMeans <- aggregate(HSB$ses, list(HSB$id), mean)
names(gMeans) <- c("id", "ses.gm")
HSB <- merge(HSB, gMeans, by="id")
HSB$ses.gmc <- HSB$ses - HSB$ses.gm

HSB.ML <- lmer(mathach ~ meanses + sector + ses.gmc + meanses*ses.gmc  
+ sector*ses.gmc + (ses.gmc|id), data=HSB)

I think despite that, we have the same dataset.
I used lme4_0.999375-27.

Felix




Am 18.11.2008 um 19:54 schrieb Doran, Harold: