| loo | R Documentation |
Computes Pareto-smoothed importance-sampling leave-one-out cross-validation
using loo::loo().
loo(x, ...)
## S3 method for class 'RprobitB_fit'
loo(x, ghk_draws = 500L, progress = interactive(), ...)
x |
[ |
... |
Further arguments passed to |
ghk_draws |
[ |
progress |
[ |
A psis_loo object from loo. It
contains estimates and standard errors as well as one Pareto-k diagnostic per
independent likelihood unit.
Vehtari2017RprobitB
\insertRefVehtari2024RprobitB
set.seed(1)
model <- fit(
choice ~ x | 0, dgp_parameters = list(beta = c(x = 1)), n_occasions = 5,
chains = 1
)
loo(model)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.