biodiverse / spOccupancy

Single-species, Multi-species, and Integrated Spatial Occupancy Models
https://www.jeffdoser.com/files/spoccupancy-web/
GNU General Public License v3.0
52 stars 8 forks source link

Cross-validation in models with random effects #4

Closed doserjef closed 2 years ago

doserjef commented 2 years ago

There is currently a bug in the cross-validation code for models that incorporate random effects (in either the occurrence or detection parts of the model), which can result in deviance metrics that may be inaccurate depending on the number of data points within each level of the random effect. I am currently fixing this and it should be updated on CRAN by mid-late March. For now, the waicOcc function can be used for model comparison when comparing models that have random effects.

doserjef commented 2 years ago

This is now updated in the development version on Github. I will update this on CRAN by mid-late March.

doserjef commented 2 years ago

This is now corrected and updated on CRAN (v0.3.0)