v0.5.0
spOccupancy v0.5.0 contains numerous substantial updates that provide new functionality, improved run times for models with unstructured random effects, an important bug fix for cross-validation with unstructured random effects under certain scenarios, and some other minor bug fixes. The changes include:
- New functionality for fitting spatially-varying coefficient occupancy models. The function
svcPGOcc()fits a single-season spatially-varying coefficient model, andsvcTPGOcc()fits a multi-season spatially-varying coefficient model. We also include the functionssvcPGBinom()andsvcTPGBinom()for fitting spatially-varying coefficient generalized linear models when ignoring imperfect detection. We also include the helper functiongetSVCSamples()to more easily extract the SVC samples from the resulting model objects if they are desired. - Updated the underlying
C++code to reduce run times for models that include unstructured random intercepts. - Fixed a bug in the k-fold cross-validation for models that include unstructured random intercepts on the occupancy portion of the model. This bug could have led to inacurrate cross-validation metrics when comparing a model with the unstructured random effect and without the unstructured random effect. We strongly encourage users who have performed cross-validation under such a scenario to rerun their analyses using v0.5.0.
- Added the
k.fold.onlyargument to all model-fitting functions, which allows users to only perform k-fold cross-validation instead of having to run the model first with the entire data set. - Adjusted how random intercepts in the detection model were being calculated, which resulted in unnecessary massive objects when fitting a model with a large number of random effect levels and spatial locations. See GitHub issue 14.
- Fixed a bug that prevented prediction from working for multi-species models when
X.0was supplied as a data frame and not a matrix. See GitHub issue 13. - Fixed an error that occurred when the detection-nondetection data were specified in a specific way. See GitHub issue 12.