Zelig {Zelig} | R Documentation |
Zelig provides a unified notation and framework for statistical
analysis by encompassing many other statistical methods. It also
makes it easy to interpret and present statistical results by
simulating quantities of interest from their corresponding posterior
distributions. Full documentation is available online at
http://gking.harvard.edu/zelig, and help for specific commands is
available through link{help.zelig
}.
z.out <- zelig(formula, model, data, ...) x.out <- setx(z.out, ...) s.out <- sim(z.out, x = x.out, num = 1000, ...)
formula |
formula used for a statistical model, using, for example,
the symbolic representation Y ~ X1 + X2 . Note that +
denotes inclusion, not addition, in the case of the non-linear
models. |
model |
name of a statistical model. Refer to
help.zelig("models") for a full list of models. |
data |
data frame containing variables called in formula . |
z.out |
output from zelig . |
x.out |
output from setx . |
num |
number of simulations, i.e., posterior draws. |
x |
values of explanatory variables used for simulation. |
... |
additional arguments affecting estimation, values of explanatory variables, and simulation. |
The following steps are required. First, a model is
estimated via zelig
. Next, with setx
, the users define
the values of explanatory variables according to which the quantities
of interest are simulated. Third, sim
draws quantities of
interest from their corresponding posterior distributions or their
asymptotic Normal approximation. Finally, summary
provides a
useful summaries for the estimated model and simulated quantities of
interest.
z.out |
output object from zelig . |
x.out |
output object from setx . |
s.out |
output object from sim . |
Kosuke Imai <kimai@princeton.edu>; Gary King <king@harvard.edu>; Olivia Lau<olau@fas.harvard.edu>
Gary King, Michael Tomz, and Jason Wittenberg (2000), ``Making the Most of Statistical Analyses: Improving Interpretation and Presentation,'' American Journal of Political Science, vol. 44, pp. 347-355.
Please use link{help.zelig
} to access the Zelig reference
manual. The complete document is available online at
http://gking.harvard.edu/zelig.