A simulated data set of 200 patients in a two-arm chemotherapy trial. The
column names, types and label attributes match gtsummary::trial, so
gtsummary examples can be run unchanged; the values themselves are
different. Generated with a fixed seed in data-raw/trial.R.
Format
A data frame with 200 rows and 8 variables:
- trt
Chemotherapy Treatment:
"Drug A"or"Drug B"- age
Age, years (11 missing)
- marker
Marker Level (ng/mL) (10 missing)
- stage
T Stage: factor with levels
T1,T2,T3,T4- grade
Grade: factor with levels
I,II,III- response
Tumor Response:
1= responder,0= non-responder (7 missing)- death
Patient Died:
1= died within 24 months,0= censored- ttdeath
Months to Death/Censor, administratively censored at 24
Examples
head(trial)
#> trt age marker stage grade response death ttdeath
#> 1 Drug A 66 0.629 T3 I 0 1 20.96
#> 2 Drug B 72 0.622 T3 III 0 0 24.00
#> 3 Drug A 72 2.389 T4 II 0 1 23.36
#> 4 Drug A 73 1.591 T2 II 0 1 15.89
#> 5 Drug B 43 0.744 T2 II 1 1 22.71
#> 6 Drug A 81 NA T1 III 0 0 24.00
str(trial)
#> 'data.frame': 200 obs. of 8 variables:
#> $ trt : chr "Drug A" "Drug B" "Drug A" "Drug A" ...
#> ..- attr(*, "label")= chr "Chemotherapy Treatment"
#> $ age : num 66 72 72 73 43 81 62 45 48 70 ...
#> ..- attr(*, "label")= chr "Age"
#> $ marker : num 0.629 0.622 2.389 1.591 0.744 ...
#> ..- attr(*, "label")= chr "Marker Level (ng/mL)"
#> $ stage : Factor w/ 4 levels "T1","T2","T3",..: 3 3 4 2 2 1 4 2 4 4 ...
#> ..- attr(*, "label")= chr "T Stage"
#> $ grade : Factor w/ 3 levels "I","II","III": 1 3 2 2 2 3 1 1 2 3 ...
#> ..- attr(*, "label")= chr "Grade"
#> $ response: int 0 0 0 0 1 0 0 NA 0 0 ...
#> ..- attr(*, "label")= chr "Tumor Response"
#> $ death : int 1 0 1 1 1 0 0 0 0 0 ...
#> ..- attr(*, "label")= chr "Patient Died"
#> $ ttdeath : num 21 24 23.4 15.9 22.7 ...
#> ..- attr(*, "label")= chr "Months to Death/Censor"