repl
command takes
zelig
or
sim
output objects and replicates (literally, re-runs)
the entire analysis. The results should be an output
object
identical to the original input object in the case of
zelig
output. In the case of sim
output, the replicated analyses may differ slightly due to
stochastic randomness in the simulation procedure.repl(object, ...)
repl.default(object, data = NULL, ...)
repl.zelig(object, prev = NULL, data = NULL, x = NULL, x1 = NULL,
bootfn = NULL, ...)
sim
output, you may
optionally use the previously simulated parameters to calculate the
quantities of interest rather than simulating a new set of
parameters. For all models, this shouldsim
output with
bootstrapped parameters, you should manually specify the
bootfn
if a non-default option was used.zelig
output, repl
will create output that is in
every way identical to the original input. You may check to see
whether they are identical by using the identical
command. For sim
output, repl
output will be will be
identical to the original object if you choose not to simulate new
parameters, and instead choose to calculate quantities of interest
using the previously simulated parameters (using the prev
option. If you choose to simulate new parameters, the summary
statistics for each quantity of interest should be identical, up to a
random approximation error. As the number of simulations increases,
this error decreases.
zelig
, setx
, and
sim
. In addition, the full Zelig manual may be
accessed online at