nsims.nlist {nlist}R 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))

[Package nlist version 0.3.3 Index]