SampleData: Randomly generated data representing a potential patient...

Description Usage Format Details Examples

Description

The data were generated using the script in inst/scripts/makePats.R and are intended for testing components of the package.

Usage

1

Format

A data frame with 78 observations on the following 7 variables.

name

The patients name.

sex

The sex of the patient, M or F.

age

The age of the patient.

date

The date they were entered into the trial.

strata

Which center they were entered by, Center1 or Center2.

trt

A treatment label, either A or B.

surv

Survival time, if treatment is A then exponential with a mean of 10, for B exponential with mean 12.

Details

Clearly the randomizer will assign the patients to treatments, so the indicator here is irrelevant, but it seemed useful to have some difference in survival, and to keep track of it.

Examples

1
2

Example output

       name sex      age      date  strata trt      surv
1  Sally A.   F 30.77764  2009-1-1 Center1   B 15.381060
2  Sally B.   F 47.80237  2009-1-2 Center1   A  7.365746
3  Sally C.   F 34.90522  2009-1-3 Center1   A  7.365746
4  Sally D.   F 51.02259  2009-1-4 Center2   A  7.365746
5  Sally E.   F 52.97589  2009-1-5 Center1   B 15.381060
6  Sally F.   F 22.54892  2009-1-6 Center2   A  7.365746
7  Sally G.   F 38.95559  2009-1-7 Center1   B 15.381060
8  Sally H.   F 51.34225  2009-1-8 Center1   A  7.365746
9  Sally I.   F 39.74879  2009-1-9 Center2   A  7.365746
10 Sally J.   F 36.52490 2009-1-10 Center2   B 15.381060

randPack documentation built on Nov. 8, 2020, 5:32 p.m.