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

2018-09-04 Thread Pedro Vaz
Hello, 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| structure.id), data = Mydata, family = binomial) stream is a factor with 2 levels; width.m is continuous; grass.per is a

[R] Account for a factor variability in a logistic GLMM in lme4

2018-09-03 Thread Pedro Vaz
We did a field study in which we tried to understand which factors significantly explain the probability of a group of animals (5 species in total) crossing through 30 wildlife road-crossing structures. The response variable is binomial (yes=crossed; no = did not cross) and was recorded by animal s