simul_data | R Documentation |
This combines the covariates simulation via simul_covariates()
with 10
categorical covariates, and the PFS simulation via simul_pfs()
.
simul_data(n, add_interaction = FALSE, coefs, ...)
n |
( |
add_interaction |
( |
coefs |
( |
... |
additional parameters apart from the linear predictor values
needed for |
Regression coefficients are for an AFT with over-parametrized dummy coding for arm-subgroup interactions.
A combined data.frame
with the id
column, the design matrix and the
PFS outcomes.
set.seed(321)
simul_data(
n = 100,
coefs = c(arm1 = 1),
sigma_aft = 1,
recr_duration = 0.2,
rate_cens = 2,
n_events = 20
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.