View source: R/tools.R View source: R/methods.R
npar | R Documentation |
The number of observation of a fitted model is typically obtained
using the nobs
method. There is no such generics to extract the
same information about the number of parameters. npar
is such a
generic and has a special method for micsr
objects with a
subset
argument that enables to compute the number of parameters
for a subset of coefficients. The default method returns the length
of the vector of coefficients extracted using the coef
function.
npar(x, subset = NULL)
## Default S3 method:
npar(x, subset = NULL)
## S3 method for class 'micsr'
npar(x, subset = NULL)
x |
a fitted model |
subset |
a character indicating the subset of coefficients
(only relevant for |
an integer.
Yves Croissant
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.