Learn R Programming

universals (version 0.0.1)

nchains: Number of Chains

Description

Gets the number of chains of an MCMC object.

Usage

nchains(x, ...)

Arguments

x

An object.

...

Other arguments passed to methods.

Value

An integer scalar of the number of chains.

See Also

Other MCMC dimensions: niters(), npars(), nsams(), nsims(), nterms()

Examples

Run this code
# NOT RUN {
nchains.foobar <- function(x, ...) {
  NotYetImplemented()
  # replace with code to get nchains for an object of class 'foobar'
}
# }

Run the code above in your browser using DataLab