Gets the number of iterations (in a chain) of an MCMC object.
niters(x, ...)
An object.
Other arguments passed to methods.
An integer scalar of the number of iterations.
Other MCMC dimensions:
nchains()
,
npars()
,
nsams()
,
nsims()
,
nterms()
# NOT RUN {
niters.foobar <- function(x, ...) {
NotYetImplemented()
# replace with code to get niters for an object of class 'foobar'
}
# }
Run the code above in your browser using DataLab