parameters: Get the names of the parameters in a fitted Bayesian model
Description
Get a character vector of the names of the parameters in a variety of fitted
Bayesian models. All models supported by as_sample_tibble are
supported.
Usage
parameters(model)
# S3 method for default
parameters(model)
Arguments
model
A supported Bayesian model fit / MCMC object. Tidybayes supports a variety of model objects;
for a full list of supported models, see tidybayes-models.
Value
A character vector of parameter names in the fitted model.
Details
This function is often useful for inspecting a model interactively in order
to construct calls to spread_samples or gather_samples
in order to extract samples in a tidy format.