This function simulates some survival data with a cure proportion.
1 | simsomdata(i = 1, n, ng, coeffic, REvcov)
|
i |
Seed value, integer (used for reproducible simulations and multi-dataset simulation). |
n |
Sample size n, integer. |
ng |
Number of higher-level units (groups), integer. |
REvcov |
A list of size 3, containing the covariance-matrix elements (varcure, frailty and correlation parameter). |
coeff |
A list of size 2, containing a vector of parameter values each, respectively of the indicence and the latency model. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.