This function returns the number of model parameters. The default
method returns the component x$param$nParam.
Usage
nParam(x, free=FALSE, ...)
## S3 method for class 'default':
nParam(x, \dots)
## S3 method for class 'lm':
nParam(x, \dots)
## S3 method for class 'maxim':
nParam(x, free=FALSE, \dots)
Arguments
x
a statistical model
free
logical, whether to report only the free parameters or the
total number of parameters (default)
...
other arguments for methods
Value
Number of parameters in the model
Details
Free parameters are the parameters with no equality
restrictions. Some parameters may be restricted (e.g. sum of two
probabilities may be restricted to equal unity). In this case the
total number of parameters may depend on the
normalisation.