Learn R Programming

ergm (version 3.1.3)

coef.ergm: Extract Model Coefficients

Description

coef is a Method which extracts model coefficients from objects returned by the ergm function. coefficients is an alias for it.

Usage

## S3 method for class 'ergm':
coef(object, \dots)
## S3 method for class 'ergm':
coefficients(object, \dots)

Arguments

object
an object for which the extraction of model coefficients is meaningful.
...
other arguments.

Value

  • Coefficients extracted from the model object object.

See Also

fitted.values and residuals for related methods; glm, lm for model fitting.

Examples

Run this code
data(molecule)
molecule %v% "atomic type" <- c(1,1,1,1,1,1,2,2,2,2,2,2,2,3,3,3,3,3,3,3)
fit <- ergm(molecule ~ edges + nodefactor("atomic type"))
coef(fit)

Run the code above in your browser using DataLab