Learn R Programming

tidybayes (version 0.12.1.9000)

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.

See Also

spread_samples, gather_samples.

Examples

Run this code
# NOT RUN {
data(line, package = "coda")
parameters(line)

data(RankCorr, package = "tidybayes")
parameters(RankCorr)

# }

Run the code above in your browser using DataLab