estfun {sandwich}R Documentation

Extract Estimating Functions

Description

Generic function for extracting the estimating functions of a fitted model with methods for (generalized) linear models.

Usage

estfun(x, ...)

Arguments

x a fitted model object of class "lm", "glm" or "rlm".
... currently not used.

Value

A matrix containing the estimating functions.

See Also

lm, glm, rlm

Examples

x <- sin(1:10)
y <- rnorm(10)
fm <- lm(y ~ x)

estfun(fm)
residuals(fm) * cbind(1, x)

[Package sandwich version 1.0-0 Index]