| loo,mafit-method | R Documentation |
loo for an ma object.Computes PSIS-LOO CV, approximate leave-one-out cross-validation
using Pareto smoothed importance sampling, see loo.
## S4 method for signature 'mafit'
loo(x, ...)
x |
an object of class |
... |
passed to |
... affect the function through two parameters, marginal and
lower_bound. When marginalis TRUE, the PSIS-LOO CV is based on the
marginal likelihood, i.e. with the dependence on theta integrated out.
marginal defaults to TRUE. lower_bound species the lower bound where
log-likelihoods are dropped; this is only used in the p-hacking model
and defaults to -6.
A loo object.
phma_model <- phma(yi, vi, data = metadat::dat.begg1989)
psma_model <- psma(yi, vi, data = metadat::dat.begg1989)
loo(phma_model)
loo(psma_model)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.