biodiverse / ubms

Fit models to data from unmarked animals using Stan. Uses a similar interface to the R package 'unmarked', while providing the advantages of Bayesian inference and allowing estimation of random effects.
https://hmecology.github.io/ubms/
GNU General Public License v3.0
35 stars 8 forks source link

Add K-fold cross validation function #62

Closed kenkellner closed 1 year ago

kenkellner commented 2 years ago

See Gelman et al. 2021, Regression and Other Stories, pg. 179

kenkellner commented 2 years ago

https://mc-stan.org/rstanarm/reference/kfold.stanreg.html https://github.com/stan-dev/rstanarm/blob/master/R/loo-kfold.R