[R-sig-ME] leave-one-out cross validation in mixed effects logistic model (lme4)

Pedro Vaz z@@v@z @ending from gm@il@com
Tue Sep 4 18:00:42 CEST 2018


So, I have this (simplified for better understanding) binomial mixed
effects model [library (lme4)]

Mymodel <- glmer(cross.01 ~ stream.01 + width.m + grass.per + (1|
  data = Mydata, family = binomial)

stream is a factor with 2 levels; width.m is continuous; grass.per is a

Now, a reviewer is asking me to apply "a cross-validation procedure (i.e. a
leave-one-out design coupled with predictive metrics as e.g. AUC) on this

Does anyone have R-code to do this cross validation in my logistic mixed
effects model? In the reviewer words: "the model should be evaluated also
as for their predictive performance, not only for assumptions violation and
for goodness-of-fit" (which I presented already in the reviewed paper draft)

Many thanks in advance,

	[[alternative HTML version deleted]]

More information about the R-sig-mixed-models mailing list