Description Usage Arguments Value
View source: R/simulate-data.R
Simulates a dataset under the competing risks model with two causes and censoring.
| 1 2 3 4 5 6 7 8 9 10 | genset_func(
  n,
  beta1,
  gamma1,
  beta2,
  gamma2,
  beta.cens = c(0, 0, 0),
  cens.rate = 0.2,
  gamma.cens = 3
)
 | 
| n | Sample size | 
| beta1 | Coefficients for cause 1 | 
| gamma1 | Shape for cause 1 | 
| beta2 | Coefficients for cause 2 | 
| gamma2 | Shape for cause 2 | 
| beta.cens | Coefficients for censoring | 
| cens.rate | Target censoring rate, used for testing | 
| gamma.cens | Shape parameter of weibull for censoring, if 1 we have PH censoring | 
A data frame with the simulated data
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.