nparam: Length of the parameter vector associated with an object or...

View source: R/nparam.R

nparamR Documentation

Length of the parameter vector associated with an object or with its terms.

Description

This is a generic that returns the number of parameters associated with a model or a model fit.

Usage

nparam(object, ...)

## Default S3 method:
nparam(object, ...)

## S3 method for class 'ergm'
nparam(object, offset = NA, ...)

Arguments

object

An object for which number of parameters is defined.

...

Additional arguments to methods.

offset

If NA (the default), all model terms are counted; if TRUE, only offset terms are counted; and if FALSE, offset terms are skipped.

Methods (by class)

  • nparam(default): By default, the length of the coef() vector is returned.

  • nparam(ergm): A method to return the number of parameters of an ergm fit.


ergm documentation built on Oct. 7, 2024, 5:08 p.m.