Learn R Programming

ergm (version 3.8.0)

vcov.ergm: Extract Model Covariance Matrix

Description

vcov is a method which extracts the covariance matrix from the output object returned by the ergm estimation.

Usage

# S3 method for ergm
vcov(object, sources=c("all","model","estimation"), …)

Arguments

object

The ergm output object.

sources

Specify whether to return the covariance matrix from the ERGM model, the estimation process, or both combined.

other arguments.

Value

Coefficients extracted from the model object object.

See Also

coef.ergm

Examples

Run this code
# NOT RUN {
data(florentine)
fit <- ergm(flomarriage ~ edges + concurrent)
vcov(fit, sources="model")
vcov(fit, sources="estimation")
vcov(fit, sources="all") # the default
# }

Run the code above in your browser using DataLab