niters.nlists: Number of Iterations

View source: R/niters.R

niters.nlistsR Documentation

Number of Iterations

Description

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

Usage

## S3 method for class 'nlists'
niters(x, ...)

Arguments

x

An object.

...

Other arguments passed to methods.

Value

An integer scalar of the number of iterations.

See Also

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

Examples

niters(nlists(nlist(x = c(2, 9)), nlist(x = c(1, 7))))

nlist documentation built on June 8, 2025, 9:41 p.m.