generatePatientData: Generate Patient Data

Description Usage Arguments Value Author(s) See Also Examples

View source: R/interim_and_survival_package_functions.R

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)

survGenesInterim documentation built on May 2, 2019, 5:22 p.m.