0

I want to remove outliers (with residuals beyond 2.5sd) from my model. I have tried this code:

acc.glmer1=glmer(correct_answer ~ condition + (1|Participant) + (1|word), 
data = ldt[abs(scale(resid(acc.glmer)))<2.5,], family="binomial")

and I get the following error message:

Error: bad 'data':

I run the same code on a different dataset and it runs smoothly without any issues.

Vinícius Félix
  • 8,448
  • 6
  • 16
  • 32
Katerina
  • 11
  • 1

0 Answers0