Gets the number of parameters of an object.

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

npars(x, ...)

# S3 method for default
npars(x, ...)

Arguments

x

An object.

...

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()