zelig
command 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).z.out <- zelig(formula, model, data, by, ...)
y ~, x1 + x2
, where y
is the
dependent variable and x1
and x2
are the explanatory
variables, and y
, x1
,""
.
Type help.zelig("models")
to see a list of currently supported
models.mi
).data
. Zelig will subset
the data frame based on the levels in the by
variable, and
estimate a model for each subset. This a particularly powerful option
which will allow you to save a considerablezelig
,
depending on the model to be estimated.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)
.