R/survivaldata.R
survivaldata.Rd
A dataset containing the results of 100 patients with time-to-event outcome, the dataset is filled with treatment assignment and status (0 = censored, 1 = not censored).
data(survivaldata)
A data frame with 100 rows and 4 variables:
id
Patient ID in the trial.
treatment
Treatment assignment for patients, 1 for treatment group 0 for control group.
time
The follow up time for patients.
event
The status indicator, normally 0=alive, 1=dead or 0 = no event, 1 = event occurred.
data(survivaldata)