Identify the observations that most influence a fit and those it predicts poorly, by Pareto-smoothed importance-sampling leave-one-out cross-validation (PSIS-LOO; Vehtari et al. 2017).
Arguments
- fit
A
kb_fitobject.- ...
These dots are for future extensions and must be empty.
- threshold
A number greater than 0: an observation with
pareto_kabove it is influential.NULL(the default) uses the threshold ofloo::loo(),min(1 - 1 / log10(S), 0.7)forSposterior draws.
Value
The fitted data as a tibble, one row per observation, with added
columns elpd_loo, pareto_k, and influential.
Details
pareto_k measures how much the fit changes when an observation is left
out, and elpd_loo how well the observation is predicted by a fit without
it; see the
Advanced article
for details.
References
Vehtari, A., Gelman, A., and Gabry, J. (2017). Practical Bayesian model evaluation using leave-one-out cross-validation and WAIC. Statistics and Computing, 27, 1413-1432.
See also
loo.kb_fit() for the full PSIS-LOO result.
Other diagnostics:
kb_converged(),
kb_plot_trace(),
kb_sensitivity(),
loo.kb_fit(),
pp_check.kb_fit()