Learn R Programming

randPack (version 1.18.0)

SampleData: 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)

Arguments

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

Run this code
data(SampleData)
SampleData[1:10,]

Run the code above in your browser using DataLab