Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

varnames

Named dimensions of MCMC objects


Description

varnames() returns the variable names and chanames returns the chain names, or NULL if these are not set.

If allow.null = FALSE then NULL values will be replaced with canonical names.

Usage

varnames(x, allow.null=TRUE)
chanames(x, allow.null=TRUE)
varnames(x) <- value
chanames(x) <- value

Arguments

x

an mcmc or mcmc.list object

allow.null

Logical argument that determines whether the function may return NULL

value

A character vector, or NULL

Value

A character vector , or NULL.

See Also


coda

Output Analysis and Diagnostics for MCMC

v0.19-4
GPL (>= 2)
Authors
Martyn Plummer [aut, cre, trl], Nicky Best [aut], Kate Cowles [aut], Karen Vines [aut], Deepayan Sarkar [aut], Douglas Bates [aut], Russell Almond [aut], Arni Magnusson [aut]
Initial release
2020-09-30

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.