labels: Get and set the variable labels of a draws component object...

labelsR Documentation

Get and set the variable labels of a draws component object for a vector-valued parameter

Description

Get and set the variable labels of a draws component object for a vector-valued parameter

Usage

## S3 method for class 'dc'
labels(object, ...)

labels(object) <- value

Arguments

object

a draws component object.

...

currently not used.

value

a vector of labels.

Value

The extractor function returns the variable labels.

Examples


ex <- mcmcsae_example()
sampler <- create_sampler(ex$model, data=ex$dat)
sim <- MCMCsim(sampler, burnin=50, n.iter=100, n.chain=1, store.all=TRUE)
labels(sim$beta)
labels(sim$v)
labels(sim$beta) <- c("a", "b")
labels(sim$beta)



mcmcsae documentation built on Oct. 11, 2023, 1:06 a.m.