Generate Patient Data

Share:

Description

This function simulates entry dates of the patient data (e.g. date of diagnosis od data of surgery) and survival times of the patients.

Usage

1
  generatePatientData(N, l.1.tick, lambda)

Arguments

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

Value

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)

Author(s)

Andreas Leha andreas.leha@med.uni-goettingen.de

See Also

generateExpressionData

Examples

 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)