
Posterior cross-validation for fitted models
Source:R/posterior_crossvalidation.R
posterior_crossvalidation.RdGeneric function for posterior cross-validation.
Usage
posterior_crossvalidation(object, ...)
# S3 method for class 'list'
posterior_crossvalidation(object, ..., tibble = TRUE, return_indices = FALSE)
# Default S3 method
posterior_crossvalidation(object, ...)Arguments
- object
A fitted model, or a (preferably named) list of fitted models. The elements of a list can be of any class with a
posterior_crossvalidationmethod, so for instancerspde_lmeandgraph_lmefits can be compared in one call.- ...
Arguments passed on to the methods. For a list of models, only the arguments that are supplied are passed on, so each method uses its own defaults for the rest.
- tibble
If
TRUE(default), the scores for a list of models are returned as atibblewith aModelcolumn.- return_indices
If
TRUE, the train/test indices used for the first model are also returned.