Learn R Programming

mcmcsae (version 0.6.0)

par_names: Get the parameter names from a draws object

Description

Get the parameter names from a draws object

Usage

par_names(draws)

Arguments

draws

a draws object.

Value

The names of the parameters whose MCMC simulations are stored in draws.

Examples

Run this code
# NOT RUN {
data(iris)
sampler <- create_sampler(Sepal.Length ~ 
    reg(~ Petal.Length + Species, name="beta"), data=iris)
sim <- MCMCsim(sampler, burnin=100, n.iter=400)
(summary(sim))
par_names(sim)

# }

Run the code above in your browser using DataLab