Learn R Programming

ergm (version 4.7.1)

ergm.estfun: Compute the Sample Estimating Function Values of an ERGM.

Description

The estimating function for an ERGM is the score function: the gradient of the log-likelihood, equalling \(\eta'(\theta)^\top \{g(y)-\mu(\theta)\}\), where \(g(y)\) is a \(p\)-vector of observed network sufficient statistic, \(\mu(\theta)\) is the expected value of the sufficient statistic under the model for parameter value \(\theta\), and \(\eta'(\theta)\) is the \(p\) by \(q\) Jacobian matrix of the mapping from curved parameters to natural parmeters. If the model is linear, all non-offset statistics are passed. If the model is curved, the score estimating equations (3.1) by Hunter and Handcock (2006) are given instead.

Usage

ergm.estfun(stats, theta, model, ...)

# S3 method for numeric ergm.estfun(stats, theta, model, ...)

# S3 method for matrix ergm.estfun(stats, theta, model, ...)

# S3 method for mcmc ergm.estfun(stats, theta, model, ...)

# S3 method for mcmc.list ergm.estfun(stats, theta, model, ...)

Value

An object of the same class as stats containing \(q\)-vectors of estimating function values.

Arguments

stats

An object representing sample statistics with observed values subtracted out.

theta

Model parameter \(q\)-vector.

model

An ergm_model object or its etamap element.

...

Additional arguments for methods.

Methods (by class)

  • ergm.estfun(numeric): Method for numeric vectors of length \(p\).

  • ergm.estfun(matrix): Method for matrices with \(p\) columns.

  • ergm.estfun(mcmc): Method for mcmc objects with \(p\) variables.

  • ergm.estfun(mcmc.list): Method for mcmc.list objects with \(p\) variables.