Skip to content
Prev 16508 / 20628 Next

comparing 2 models

I think the best option would be to refit these models in Stan (a front end like rstanarm or brms makes it easy with similar lme4 syntax) and use the LOO function to compare their out of sample predictive power. 

Otherwise, if you wish to stick with lme4, you need some way to properly count the number of effective parameters. AIC doesn?t do that because it doesn?t understand / account for the shrinkage of random effects. You might consider WAIC, which does a better job of this. There is an implementation for lme4 models in the blmeco package. 

Jonathan

Sent from my iPhone