The input table, lungcancer, contains data from a randomized trial of two treatment regimens for lung cancer used to model survival analysis. There are three categorical predictors and three numerical predictors, described in the following table.
Predictor | Description | Possible Values |
---|---|---|
trt | Treatment plan (categorical) |
|
celltype | Cancerous cell type (categorical) |
|
prior | Whether the patient has undergone prior therapy (categorical) |
|
karno | Karnofsky score assigned by patient (numerical) | [0, 100], where 100 is perfect health and 0 is death |
diagtime | Months from diagnosis to randomization (numerical) | Nonnegative number |
age | Patient age, in years (numerical) | Nonnegative number |
In addition to a column for each predictor, the input table has these columns:
Column Name | Description | Possible Values |
---|---|---|
id | Patient identifier | Positive integer |
status | Censoring status or survival event |
|
time_int | Survival time in months | Nonnegative number |
id | trt | celltype | time_int | status | karno | diagtime | age | prior |
---|---|---|---|---|---|---|---|---|
1 | standard | squamous | 72 | 1 | 60 | 7 | 69 | no |
2 | standard | squamous | 411 | 1 | 70 | 5 | 64 | yes |
3 | standard | squamous | 228 | 1 | 60 | 3 | 38 | no |
4 | standard | squamous | 126 | 1 | 60 | 9 | 63 | yes |
5 | standard | squamous | 118 | 1 | 70 | 11 | 65 | yes |
6 | standard | squamous | 10 | 1 | 20 | 5 | 49 | no |
7 | standard | squamous | 82 | 1 | 40 | 10 | 69 | yes |
8 | standard | squamous | 110 | 1 | 80 | 29 | 68 | no |
9 | standard | squamous | 314 | 1 | 50 | 18 | 43 | no |
10 | standard | squamous | 100 | 0 | 70 | 6 | 70 | no |
... | ... | ... | ... | ... | ... | ... | ... | ... |