survivalExample {precmed} | R Documentation |
Simulated data with survival outcome
Description
A dataset containing a time-to-event outcome, an event indicator, treatment group, and 6 baseline covariates
Usage
data(survivalExample)
Format
A dataframe with 4000 rows (patients) and 9 variables:
- age
age at baseline, centered to 48 years old, in years
- female
sex, 0 for male, 1 for female
- previous_treatment
previous treatment, "drugA", "drugB", or "drugC"
- previous_cost
previous medical cost, in US dollars
- previous_number_symptoms
previous number of symptoms, "0", "1", or ">=2"
- previous_number_relapses
previous number of relapses
- trt
current treatment, "drug0" or "drug1"
- y
time to first relapse or censoring
- d
event indicator, 1: relapse, 0: censored
Examples
data(survivalExample)
str(survivalExample)
[Package precmed version 1.0.0 Index]