Learn R Programming

universals (version 0.0.1)

nsams: Number of Samples

Description

Gets the number of sample values (simulations * terms) of an MCMC object.

The default methods returns the product of nsims() and nterms().

Usage

nsams(x, ...)

# S3 method for default nsams(x, ...)

Arguments

x

An object.

...

Other arguments passed to methods.

Value

An integer scalar of the number of samples.

See Also

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

Examples

Run this code
# NOT RUN {
nsams.foobar <- function(x, ...) {
  nsims(x, ...) * nterms(x, ...)
}
# }

Run the code above in your browser using DataLab