sandwich (version 0.1-1)

estfun: 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

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

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

Run the code above in your browser using DataCamp Workspace