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

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

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

Arguments

x

An object.

...

Other arguments passed to methods.

Value

An integer scalar of the number of simulations.

Details

Always 1L.

See also

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

Examples

nsims(nlist(x = 1:2))
#> [1] 1