50% off | Unlimited Data & AI Learning
Get 50% off unlimited learning

nlist (version 0.4.0)

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

Value

An integer scalar of the number of simulations.

Arguments

x

An object.

...

Other arguments passed to methods.

See Also

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

Examples

Run this code
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