cv_quap | R Documentation |
Cross validation for quap
model fits.
cv_quap( quap_model, lno = 1, pw = FALSE, cores = 1, ... )
quap_model |
|
lno |
Number of observations to leave out in each fold |
pw |
Pointwise results (TRUE) or summed across folds (FALSE) |
cores |
Number of cores to use. If great than 1, uses |
... |
Additional arguments to pass to |
This function constructs cross validation folds from an existing quap
model fit and associated data. It then fits the model to each fold and returns either the fit to each fold (when pw=TRUE
) or the summed performance across all folds.
The default is leave-one-out cross-validation, when lno=1
.
Richard McElreath
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.