| loo_weights.brma | R Documentation |
Extract the normalized Pareto smoothed importance sampling (PSIS) weights from a brma model object.
## S3 method for class 'brma'
loo_weights(object, unit = "estimate", ...)
object |
a brma model object. |
unit |
output/deletion unit. See |
... |
currently unused. |
LOO must first be computed with
object <- add_loo(object, unit = unit). This method extracts the
stored PSIS object and does not compute LOO.
An S x K matrix for estimate-unit LOO, or S x G
matrix for cluster-unit LOO, with posterior samples in rows and LOO targets
in columns. Columns are normalized to sum to one.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.