Sandwich variance estimator for glms
svy.varcoef.RdComputes the sandwich variance estimator for a generalised linear model fitted to data from a complex sample survey. Designed to be used internally by svyglm.
Usage
svy.varcoef(glm.object, design,std.errors = c("linearized",
"Bell-McCaffrey", "Bell-McCaffrey-2"), degf = FALSE)Arguments
- glm.object
A
glmobject- design
A
survey.designobject- std.errors
The kind of standard errors to compute
- degf
Whether to compute the adjusted degrees of freedom along with Bell-McCaffrey standard errors