
Last chance! 50% off unlimited learning
Sale ends in
Get and set the variable labels of a draws component for a vector-valued parameter
# S3 method for dc
labels(object, ...)labels(object) <- value
a component of a draws object.
currently not used.
a vector of labels.
The extractor function returns the variable labels.
# NOT RUN {
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)
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab