LaLonde | R Documentation |
LaLonde data example
LaLonde data example
Returns the LaLonde data as used by Dehjia and Wahba. Note the data
is fixed and gen_data()
will just initialize the fixed data.
An R6 object of class DataSim
causalOT::DataSim
-> LaLonde
gen_data()
Sets up the data
LaLonde$gen_data()
get_tau()
Returns the experimental treatment effect, $1794
LaLonde$get_tau()
gen_x()
Sets up the covariate data
LaLonde$gen_x()
gen_y()
Sets up the outcome data
LaLonde$gen_y()
gen_z()
Sets up the treatment indicator
LaLonde$gen_z()
new()
Initializes the LaLonde object.
LaLonde$new(n = NULL, p = NULL, param = list(), design = "NSW", ...)
n
Not used. Maintained for symmetry with other DataSim objects.
p
Not used. Maintained for symmetry with other DataSim objects.
param
Not used. Maintained for symmetry with other DataSim objects.
design
One of "NSW" or "Full". "NSW" uses the original experimental data from the job training program while option "Full" uses the treated individuals from LaLonde's study and compares them to individuals from the Current Population Survey as controls.
...
Not used.
nsw <- LaLonde$new(design = "NSW") nsw$gen_data() nsw$get_n() obs.study <- LaLonde$new(design = "Full") obs.study$gen_data() obs.study$get_n()
get_design()
Returns the chosen design parameters
LaLonde$get_design()
clone()
The objects of this class are cloneable with this method.
LaLonde$clone(deep = FALSE)
deep
Whether to make a deep clone.
## ------------------------------------------------
## Method `LaLonde$new`
## ------------------------------------------------
nsw <- LaLonde$new(design = "NSW")
nsw$gen_data()
nsw$get_n()
obs.study <- LaLonde$new(design = "Full")
obs.study$gen_data()
obs.study$get_n()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.