save_pars | R Documentation |
Control which (draws of) parameters should be saved in a brms
model. The output of this function is meant for usage in the
save_pars
argument of brm
.
save_pars(group = TRUE, latent = FALSE, all = FALSE, manual = NULL)
group |
A flag to indicate if group-level coefficients for
each level of the grouping factors should be saved (default is
|
latent |
A flag to indicate if draws of latent variables obtained by
using |
all |
A flag to indicate if draws of all variables defined in Stan's
|
manual |
A character vector naming Stan variable names which should be saved. These names should match the variable names inside the Stan code before renaming. This feature is meant for power users only and will rarely be useful outside of very special cases. |
A list of class "save_pars"
.
## Not run:
# don't store group-level coefficients
fit <- brm(count ~ zAge + zBase * Trt + (1|patient),
data = epilepsy, family = poisson(),
save_pars = save_pars(group = FALSE))
variables(fit)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.