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)# S3 method for default
npar(x, subset = NULL)
# S3 method for micsr
npar(x, subset = NULL)
an integer.
a fitted model
a character indicating the subset of coefficients
(only relevant for micsr
models).
Yves Croissant