Learn R Programming

nlist (version 0.4.0)

niters.nlist: Number of Iterations

Description

Gets the number of iterations (in a chain) of an MCMC object.

Usage

# S3 method for nlist
niters(x, ...)

Value

An integer scalar of the number of iterations.

Arguments

x

An object.

...

Other arguments passed to methods.

Details

Always 1.

See Also

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

Examples

Run this code
niters(nlist(x = 1:2))

Run the code above in your browser using DataLab