npars.mcmcarray: Number of Parameters

Description Usage Arguments Value See Also

View source: R/npars.R

Description

Gets the number of parameters of an object.

The default methods returns the length of pars() if none are NA, otherwise it returns NA.

Usage

1
2
## S3 method for class 'mcmcarray'
npars(x, scalar = NULL, ...)

Arguments

x

An object.

scalar

A logical scalar specifying whether to include all parameters (NULL), only scalars (TRUE) or all parameters except scalars (FALSE).

...

Other arguments passed to methods.

Value

An integer scalar of the number of parameters.

See Also

pars()

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

Other parameters: pars(), set_pars()


mcmcr documentation built on Sept. 7, 2021, 1:07 a.m.