Skip to content
Prev 17658 / 20628 Next

predict function for a glmm

A few choices:

 if you use predict(..., type="response") you will get predicted
probabilities for each element.  You can use any of the standard methods
for scoring the accuracy of a binomial model (e.g. pick a cutoff value,
most typically 0.5, for making predictions and count the number of
correct/incorrect predictions, *or* use area under the curve).

 For example,

ModelMatrix::auc.default(response_var, predict(fit, type="response"))

ought to do the trick.
On 2019-05-21 9:13 a.m., Williamson, Michael via R-sig-mixed-models wrote: