powered by
Gets the number of sample values (simulations * terms) of an MCMC object.
The default methods returns the product of nsims() and nterms().
nsims()
nterms()
nsams(x, ...)# S3 method for default nsams(x, ...)
# S3 method for default nsams(x, ...)
An object.
Other arguments passed to methods.
An integer scalar of the number of samples.
Other MCMC dimensions: nchains(), niters(), npars(), nsims(), nterms()
nchains()
niters()
npars()
# NOT RUN { library(nlist) nsams(nlist()) nsams(nlist(x = 1)) nsams(nlist(x = 2:3)) nlist <- nlist(x = 2:3, y = matrix(1:9)) nsams(nlist) nsams(nlists(nlist, nlist)) # }
Run the code above in your browser using DataLab