estfun {sandwich} | R Documentation |
Generic function for extracting the estimating functions of a fitted model with methods for (generalized) linear models.
estfun(x, ...)
x |
a fitted model object of class "lm" , "glm"
or "rlm" . |
... |
currently not used. |
A matrix containing the estimating functions.
x <- sin(1:10) y <- rnorm(10) fm <- lm(y ~ x) estfun(fm) residuals(fm) * cbind(1, x)