CRASH3 | R Documentation |
CRASH3 data example
CRASH3 data example
Returns the CRASH3 data. Note that gen_data()
will initialize the fixed data for x and y, but z is generated from Binom(0.5).
An R6 object of class DataSim
causalOT::DataSim
-> CRASH3
site_id
The site of the observation in terms of the original RCT.
gen_data()
The site ID for the observations
Draws new treatment indicators. x and y data are fixed.
CRASH3$gen_data()
gen_x()
Sets up the covariate data. This data is fixed.
CRASH3$gen_x()
gen_y()
Sets up the outcome data. This data is fixed.
CRASH3$gen_y()
gen_z()
Sets up the treatment indicator. Drawn as Z ~ Binom(0.5)
CRASH3$gen_z()
new()
Initializes the CRASH3 object.
CRASH3$new(n = NULL, p = NULL, param = list(), design = NA_character_, ...)
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
Not used
...
Not used.
crash <- CRASH3$new() crash$gen_data() crash$get_n() crash$site_id
clone()
The objects of this class are cloneable with this method.
CRASH3$clone(deep = FALSE)
deep
Whether to make a deep clone.
## ------------------------------------------------
## Method `CRASH3$new`
## ------------------------------------------------
crash <- CRASH3$new()
crash$gen_data()
crash$get_n()
crash$site_id
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.