loo.jsdmStanFit | R Documentation |
This function uses the loo package to compute PSIS-LOO CV, efficient
approximate leave-one-out (LOO) cross-validation for Bayesian models using Pareto
smoothed importance sampling (PSIS). This requires that the model was fit using
log_lik = TRUE
.
## S3 method for class 'jsdmStanFit'
loo(x, calc_reff = TRUE, cores = getOption("mc.cores", 1), ...)
x |
The jsdmStanFit model object |
calc_reff |
Whether to calculate the relative efficiencies for loo, by
default |
cores |
The number of cores the loo functions use, by default uses the mc.cores option (or 1, if unspecified). |
... |
Other arguments passed to the |
A list with class c("psis_loo","loo")
, as detailed in the
loo
documentation
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.