npar {micsr} | R Documentation |
Number of parameters of a fitted model
Description
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.
Usage
npar(x, subset = NULL)
## Default S3 method:
npar(x, subset = NULL)
## S3 method for class 'micsr'
npar(x, subset = NULL)
Arguments
x |
a fitted model |
subset |
a character indicating the subset of coefficients
(only relevant for |
Value
an integer.
Author(s)
Yves Croissant
[Package micsr version 0.1-1 Index]