Description Usage Arguments Value Author(s) See Also Examples
View source: R/interim_and_survival_package_functions.R
This function simulates entry dates of the patient data (e.g. date of diagnosis od data of surgery) and survival times of the patients.
1 | generatePatientData(N, l.1.tick, lambda)
|
N |
the sample size, i.e. the number of patients |
l.1.tick |
the (anticipated) lenth of the recruitment period |
lambda |
the mean survival time of the patients |
arrivalTimes |
the vector of simulated arrival times |
survivalTimes |
the vector of simulated survival times |
N.1 |
number of patients with survival time less then the mean survival time 'lambda' |
N.2 |
number of patients with survival time greater then the mean survival time 'lambda' |
l.1.tick |
the length of the recruitment period (unchanged parameter) |
lambda |
the mean survival time (parameter) |
Andreas Leha andreas.leha@med.uni-goettingen.de
1 2 3 4 5 6 7 8 9 10 | ## the number of patients
N <- 50
## the anticipated length of the recruitment period
l.1.tick <- 60
## the mean survival time
lambda <- 60
## Not run: P <- generatePatientData(N, l.1.tick, lambda)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.