Skip to content
Prev 12259 / 20628 Next

Group size in mixed/multilevel model: How to obtain weighted effects.

Hi Jake,

I fully agree that what the model does is not necessarily wrong. It may well be that the groups should be treated equally. However in my case, each data point corresponds to one participant and each group to one study (with somewhat different characteristics). Hence, I would like to obtain the weighted estimate and rather treat each data point equal (and not each group).

Your idea of specifically modeling group size is quite appealing. I am however somewhat unsure on how to interpret the "grand mean of the group sizes". Is this the "weighted effect estimate" in which each data point (i.e., participant) is weighted equally? Given that this is how the grand mean of the group size is created it seems to be the case.

Thanks for the pointer to the paper. Will read it carefully.

Cheers,
Henrik


PS: For interested readers, this is how to obtain the estimate with "grand mean of group sizes":

dat <- within(dat, {
   size <- table(group)[paste(group)]
   ivC <- iv - mean(iv)
   sizeC <- size - mean(size)  # "mean(sizes)" is the grand mean of group sizes
})
summary(lmer(dv ~ ivC*sizeC + (ivC|group), data=dat))


Am 10.08.2014 01:13, schrieb Jake Westfall: