Inherited methods
Method gen_data()
The site ID for the observations
Draws new treatment indicators. x and y data are fixed.
Method gen_x()
Sets up the covariate data. This data is fixed.
Method gen_y()
Sets up the outcome data. This data is fixed.
Method gen_z()
Sets up the treatment indicator. Drawn as Z ~ Binom(0.5)
Method new()
Initializes the CRASH3 object.
Usage
CRASH3$new(n = NULL, p = NULL, param = list(), design = NA_character_, ...)
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
Not used
...
Not used.
Examples
crash <- CRASH3$new()
crash$gen_data()
crash$get_n()
crash$site_id
Method clone()
The objects of this class are cloneable with this method.
Usage
CRASH3$clone(deep = FALSE)
Arguments
deep
Whether to make a deep clone.