LaLonde {causalOT}R Documentation

LaLonde data example

Description

LaLonde data example

LaLonde data example

Details

Returns the LaLonde data as used by Dehjia and Wahba. Note the data is fixed and gen_data() will just initialize the fixed data.

Value

An R6 object of class DataSim

Super class

causalOT::DataSim -> LaLonde

Methods

Public methods

Inherited methods

Method gen_data()

Sets up the data

Usage
LaLonde$gen_data()

Method get_tau()

Returns the experimental treatment effect, $1794

Usage
LaLonde$get_tau()

Method gen_x()

Sets up the covariate data

Usage
LaLonde$gen_x()

Method gen_y()

Sets up the outcome data

Usage
LaLonde$gen_y()

Method gen_z()

Sets up the treatment indicator

Usage
LaLonde$gen_z()

Method new()

Initializes the LaLonde object.

Usage
LaLonde$new(n = NULL, p = NULL, param = list(), design = "NSW", ...)
Arguments
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.

Examples
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()

Method get_design()

Returns the chosen design parameters

Usage
LaLonde$get_design()

Method clone()

The objects of this class are cloneable with this method.

Usage
LaLonde$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.

Examples


## ------------------------------------------------
## 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()

[Package causalOT version 1.0.2 Index]