Wraps survey::svyglm(). Family argument accepts the same strings as the
Python module ("gaussian", "binomial", "poisson", "gamma", "negativebinomial")
or any R family object.
Usage
morie_survey_glm(
design,
formula,
family = c("gaussian", "binomial", "poisson", "gamma", "negativebinomial")
)Arguments
- design
A
survey::svydesignobject (when interfacing with thesurveypackage directly).- formula
A
formula(e.g.y ~ x1 + x2) for survey-weighted regression / GLM.- family
A
familyobject (e.g.stats::binomial()) passed to the survey-weighted GLM.