Learn R Programming

micsr (version 0.1-1)

npar: 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)

# S3 method for default npar(x, subset = NULL)

# S3 method for micsr npar(x, subset = NULL)

Value

an integer.

Arguments

x

a fitted model

subset

a character indicating the subset of coefficients (only relevant for micsr models).

Author

Yves Croissant