Learn R Programming

nlist (version 0.1.1)

nsims: Number of MCMC Simulations

Description

Gets the number of MCMC simulations (iterations * chains)

Usage

nsims(x, ...)

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

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

Arguments

x

The object

...

Unused.

Value

A count of the number of simulations.

Methods (by class)

  • nlist: Number of simulations of an nlist object

    Always 1L.

  • nlists: Number of simulations of an nlists object

See Also

niters() and nchains()

Examples

Run this code
# NOT RUN {
nsims(nlist(x = 1:2))
nsims(nlists(nlist(x = c(2, 9)), nlist(x = c(1, 7))))
nsims(split_chains(nlists(nlist(x = c(2, 9)), nlist(x = c(1, 7)))))
# }

Run the code above in your browser using DataLab