0
$\begingroup$

This question already has an answer here:

I'm trying to find outliers in this mixed model:

m1 <- lmer(y ~ service + lectage + studage + (1|d) + (1|s), data=InstEval)

So I used the merTools REsim function

reEx <- REsim(m1)

and plotted reEx

p1 <- plotREsim(reEx)

but how can I find which observations are the actual outliers?

$\endgroup$

marked as duplicate by Robert Long, whuber Jan 16 at 13:55

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1
$\begingroup$

This is a contentious topic and likely to attract varied answers. Anyway, you could use Cook's distance as in regular OLS as a measure of influence

library(lme4)
mod=lmer(mpg~cyl+disp+hp+(1|drat),data=mtcars)
library(influence.ME)
inf=influence(mod,obs=T)
plot(inf,which="cook")

enter image description here

$\endgroup$

Not the answer you're looking for? Browse other questions tagged or ask your own question.