Learn R Programming

nlist (version 0.1.1)

niters: Number of MCMC Iterations

Description

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

Usage

niters(x, ...)

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

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

Arguments

x

The object

...

Unused.

Value

A count indicating the number of MCMC iterations.

Methods (by class)

  • nlist: Number of MCMC iterations for an nlist object

    Always 1.

  • nlists: Number of MCMC iterations for an nlists object

Examples

Run this code
# NOT RUN {
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