SampleData {randPack}R Documentation

Randomly generated data representing a potential patient cohort.

Description

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

Usage

data(SampleData)

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

data(SampleData)
SampleData[1:10,]

[Package randPack version 1.40.0 Index]