Gets the number of parameters of an object.
The default methods returns the length of pars()
if none are
NA
, otherwise it returns NA
.
# S3 method for mcmcarray
npars(x, scalar = NULL, ...)
An object.
A logical scalar specifying whether to include all parameters (NULL), only scalars (TRUE) or all parameters except scalars (FALSE).
Other arguments passed to methods.
An integer scalar of the number of parameters.
Other MCMC dimensions:
nchains()
,
niters()
,
nsams()
,
nsims()
,
nterms()