Learn R Programming

universals (version 0.0.3)

niters: Number of Iterations

Description

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

Usage

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

Run this code
# NOT RUN {
library(nlist)

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

Run the code above in your browser using DataLab