50% off | Unlimited Data & AI Learning

Last chance! 50% off unlimited learning

Sale ends in


nlist (version 0.4.0)

nsims.nlist: 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 nlist
nsims(x, ...)

Value

An integer scalar of the number of simulations.

Arguments

x

An object.

...

Other arguments passed to methods.

Details

Always 1L.

See Also

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

Examples

Run this code
nsims(nlist(x = 1:2))

Run the code above in your browser using DataLab