Learn R Programming

mcmcsae (version 0.7.6)

par_names: Get the parameter names from an mcdraws object

Description

Get the parameter names from an mcdraws object

Usage

par_names(obj)

Value

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

Arguments

obj

an mcdraws object.

Examples

Run this code
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