The zelig function estimates a variety of statistical
models. Use zelig
output with setx
and sim
to compute
quantities of interest, such as predicted probabilities, expected values, and
first differences, along with the associated measures of uncertainty
(standard errors and confidence intervals).
zelig(formula, model, data, ..., by = NULL, cite = FALSE)
formula | a symbolic representation of the model to be
estimated, in the form |
---|---|
model | the name of a statistical model. For a list of supported models visit: http://docs.zeligproject.org/en/latest/. |
data | the name of a data frame containing the variables
referenced in the formula, or a list of multiply imputed data frames
each having the same variable names and row numbers (created by
|
... | additional arguments passed to |
by | a factor variable contained in |
cite | If is set to 'TRUE' (default), the model citation will be |
Depending on the class of model selected, zelig
will return
an object with elements including coefficients
, residuals
,
and formula
which may be summarized using
summary(z.out)
or individually extracted using, for example,
z.out\$coefficients
. See the specific models listed above
for additional output values, or simply type names(z.out)
.
This documentation describes the zelig
Zelig 4 compatibility wrapper
function.