| coef.ergm {ergm} | R Documentation |
coef is a Method which extracts model coefficients
from objects returned by the ergm function.
coefficients is an alias for it.
## S3 method for class 'ergm': coef(object, ...) ## S3 method for class 'ergm': coefficients(object, ...)
object |
an object for which the extraction of model coefficients is meaningful. |
... |
other arguments. |
Coefficients extracted from the model object object.
fitted.values and residuals for related methods;
glm, lm for model fitting.
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)