Description Usage Arguments Details Value Examples
Simulates a two group data.frame including time to event, recruiting time and status.
1 2 3 4 5 6 7 8 9 10 11 12 | simSurvData(
N,
tn,
lambda,
sigma,
theta,
gamma,
kappa,
distS = "exponential",
distC = "exponential",
L
)
|
N |
a two column matrix containing the size of both recruitment groups per
row, representing the number of recruited patients per group and timepoint ( |
tn |
a vecotr of length = |
lambda |
a number greater 0 defining the hazard rate for the survival process of
group1. For the parametrization see |
sigma, kappa |
a number greater 0 defining the shape parameter for the survival- and the censor process. Only needed if distS or distC is set to weibull. Default is 1 resulting in an exponential distribution. |
gamma |
a number greater 0 defining the overall hazard rate for the censor process. |
distS, distC |
a character string defining the distribution of the survival- and the censor process. Default is 'exponential'. |
L |
a number defining the timepoint for administrative censoring.
If no administrative censoring is planned |
!!!!!!!!!!!!!!!!!!!!11how the data is simulated!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
a data.frame including id (id
), time to event (time
), recruiting timepoint (tn
),
grouping (group
) and status (status
(1 = event occured)).
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.