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

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

Arguments

x

An object.

...

Other arguments passed to methods.

Value

An integer scalar of the number of iterations.

Details

Always 1.

See also

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

Examples

niters(nlist(x = 1:2))
#> [1] 1