nsims.nlist: Number of Simulations

View source: R/nsims.R

nsims.nlistR Documentation

Number of Simulations

Description

Gets the number of simulations (iterations * chains) of an MCMC object.

The default methods returns the product of nchains() and niters().

Usage

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

Arguments

x

An object.

...

Other arguments passed to methods.

Details

Always 1L.

Value

An integer scalar of the number of simulations.

See Also

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

Examples

nsims(nlist(x = 1:2))

nlist documentation built on June 8, 2025, 9:41 p.m.