[R-sig-ME] Heteroskedasticity & Serial Correlation in Linear Mixed Models (lmer)
Amir Najafi Marghmaleki
Am|r@N@j@||M@rghm@|ek| @end|ng |rom @tudent@ut@@edu@@u
Fri Aug 20 01:27:19 CEST 2021
Hi,
The errors terms of this LMM example is heteroskedastic and almost certainly serially correlated:
if (!require("pacman")) install.packages("pacman")
pacman::p_load(lme4)
library(gapminder)
fit.lmm <- lmer( log(lifeExp) ~ log(pop) + log(gdpPercap) +
(1|year) + (1|country), data = gapminder)
plot(fit.lmm)
Is there a way to deal with heteroskedasticity, serial correlation & cross-sectional dependence in linear mixed models?
Regards,
Amir Najafi | PhD Candidate (Political Economy)
University of Technology Sydney
amir.najafi using student.uts.edu.au<mailto:amir.najafi using student.uts.edu.au>
[[alternative HTML version deleted]]
More information about the R-sig-mixed-models
mailing list