Skip to content
Prev 2917 / 7420 Next

Fixing heteroscedasticity in mixed-effects model?

Malin Pinsky <malin.pinsky at ...> writes:
[big snip to make gmane happy]
Probably.

  A quick answer is that you should able to incorporate heteroscedasticity
in lme (from the nlme function) via something like weights=varPower():

mod1 <- lme(logCd ~ logRe*Hab, random=~logRe|Study, data=temp,
   weights=varPower())

(this might not be quite right, you might want to read ?nlme::varPower
and/or the relevant bit of Pinheiro and Bates 2000)

  If you want to go the Gamma route, you can try (1) the development
version of lme4 (install from r-forge, but it might be broken right
now ...); (2) glmmADMB ...

  ... but I would probably suggest lme for now.