generate,BaselineObject-method {psborrow2} | R Documentation |
Generate Data for a BaselineObject
Description
Generate Data for a BaselineObject
Usage
## S4 method for signature 'BaselineObject'
generate(x, ...)
Arguments
x |
a |
... |
additional parameters are ignored |
Value
A BaselineDataFrame object
Examples
bl_biomarkers <- create_baseline_object(
n_trt_int = 100,
n_ctrl_int = 50,
n_ctrl_ext = 100,
covariates = baseline_covariates(
c("b1", "b2", "b3"),
means_int = c(0, 0, 0),
covariance_int = covariance_matrix(c(1, 1, 1), c(.8, .3, .8))
),
transformations = list(
exp_b1 = function(data) exp(data$b1),
b2 = binary_cutoff("b2", int_cutoff = 0.7, ext_cutoff = 0.5)
)
)
generate(bl_biomarkers)
[Package psborrow2 version 0.0.3.4 Index]