glm.work {MultiRobust} | R Documentation |
Define a Generalized Linear Model
Description
Define a generalized linear model. All the arguments in glm
are allowed except for data
. Supported types of family
include gaussian
, binomial
, poisson
, Gamma
and inverse.gaussian
.
Usage
glm.work(formula, family = gaussian, weights = NULL, ...)
Arguments
formula |
The formula of the model to be fitted. |
family |
The distribution of the response variable and the link function to be used in the model. |
weights |
The prior weights to be used in the model. |
... |
Addition arguments for the function |
See Also
glm
.
Examples
# A logistic regression with response R and covariates X1 and X2
mis1 <- glm.work(formula = R ~ X1 + X2, family = binomial(link = logit))
[Package MultiRobust version 1.0.5 Index]