This is a generic that returns the number of parameters associated with a model or a model fit.
nparam(object, ...)# S3 method for default
nparam(object, ...)
# S3 method for ergm
nparam(object, offset = NA, ...)
An object for which number of parameters is defined.
Additional arguments to methods.
If NA
(the default), all model terms are counted;
if TRUE
, only offset terms are counted; and if
FALSE
, offset terms are skipped.