Description Usage Arguments Value
500 subjects, 20 variables, about 20 some linear, some wonky associations, an interaction, and some variables correlated.
1 | generate_data(n = 500, scenario = "A", missing.p = 0.2)
|
n |
Sample size |
scenario |
Character designating the simulation scenario: 0 = NULL, no association, A = simple, one variable is linearly associated with IRIS, B = simple multivariate, 5 variables are linearly associated, C = wonky, interactions, nonlinearities, etc. D = same as B but censoring depends on covariates |
missing.p |
Proportion of missing binary Y values (random censoring) |
A data frame with X variables, censored survival times (competing risk w death), and true cumulative incidence at 26.5 weeks
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.