These functions are wrappers for the glm function. The zglm function can
be used to estimate any generalized linear model in a pipe. The zlogit,
zprobit, and zpoisson functions can be used to estimate specific models.
All of these functions rely on the glm function for the actual estimation,
they simply pass the corresponding values to the family parameter of the
glm function.
Usage of these functions is very similar to the zlm function (a wrapper for lm), for detailed examples, check out the entry for that function.
The zlogit function calls zglm, specifying family=binomial(link="logit").
The zprobit function calls zglm, specifying family=binomial(link="probit").
The zpoisson function calls zglm, specifying family="poisson".
Usage
zglm(
data,
formula,
family = gaussian,
weights,
subset,
na.action,
start = NULL,
etastart,
mustart,
offset,
control = list(...),
model = TRUE,
method = "glm.fit",
x = FALSE,
y = TRUE,
singular.ok = TRUE,
contrasts = NULL,
...
)
zlogit(data, formula, ...)
zprobit(data, formula, ...)
zpoisson(data, formula, ...)Arguments
- data
A
data.framecontaining the model data.- formula
The
formulato be fitted.- family
See the
glmfunction.- weights
See the
glmfunction.- subset
See the
glmfunction.- na.action
See the
glmfunction.- start
See the
glmfunction.- etastart
See the
glmfunction.- mustart
See the
glmfunction.- offset
See the
glmfunction.- control
See the
glmfunction.- model
See the
glmfunction.- method
See the
glmfunction.- x
See the
glmfunction.- y
See the
glmfunction.- singular.ok
See the
glmfunction.- contrasts
See the
glmfunction.- ...
Other arguments to be passed to the
glmfunction.
