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"
.
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, ...)
A fitted model.
A data.frame
containing the model data.
The formula
to be fitted.
See the glm
function.
See the glm
function.
See the glm
function.
See the glm
function.
See the glm
function.
See the glm
function.
See the glm
function.
See the glm
function.
See the glm
function.
See the glm
function.
See the glm
function.
See the glm
function.
See the glm
function.
See the glm
function.
See the glm
function.
Other arguments to be passed to the glm
function.
zlm is the wrapper for lm, probably the most common fitting function. The help file for zlm function includes several usage examples.