Learn R Programming

universals (version 0.0.5)

npars: Number of Parameters

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

npars(x, ...)

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

Value

An integer scalar of the number of parameters.

Arguments

x

An object.

...

Other arguments passed to methods.

See Also

pars()

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

Other parameters: pars(), set_pars()