Learn R Programming

Zelig (version 4.2-1)

sim.default: Method for Simulating Quantities of Interest wrom 'zelig' Objects

Description

Simulate quantities of interest

Usage

## S3 method for class 'default':
sim(obj, x=NULL, x1=NULL, y=NULL,
    num=1000, bootstrap = FALSE, bootfn=NULL, cond.data =
    NULL, ...)

Arguments

obj
a 'zelig' object
x
a 'setx' object
x1
a secondary 'setx' object used to perform particular computations of quantities of interest
y
a parameter reserved for the computation of particular quantities of interest (average treatment effects). Few models currently support this parameter
num
an integer specifying the number of simulations to compute
bootstrap
ignored
bootfn
ignored
cond.data
ignored
...
parameters to be passed to the boot function, if one is supplied

Value

  • a 'sim' object storing the replicated quantities of interest