Skip to contents

Data from a study of survival in patients with malignant melanoma. Patients had their tumors surgically removed between 1962 and 1977. This dataset is part of the boot R package, originally from Andersen et al. (1993).

Usage

data(melanoma)

Format

A data frame with 205 rows and 7 variables:

time

Numeric. Survival time in days since the operation.

status

Numeric. Censoring status: 1 indicates death from melanoma, 2 indicates alive at last follow-up (censored), 3 indicates death from other causes (censored).

sex

Numeric. Sex of the patient: 1 = Male, 0 = Female.

age

Numeric. Age of the patient in years at the time of operation.

year

Numeric. Year of the operation.

thickness

Numeric. Tumor thickness in millimeters (mm).

ulcer

Numeric. Ulceration status of the tumor: 0 = Absent, 1 = Present.

Source

Andersen, P.K., Borgan, O., Gill, R.D. and Keiding, N. (1993) Statistical Models Based on Counting Processes. Springer-Verlag. Data included in the boot R package.

Examples

data(melanoma)
str(melanoma)
#> spc_tbl_ [205 × 7] (S3: spec_tbl_df/tbl_df/tbl/data.frame)
#>  $ time     : num [1:205] 10 30 35 99 185 204 210 232 232 279 ...
#>  $ status   : num [1:205] 3 3 2 3 1 1 1 3 1 1 ...
#>  $ sex      : num [1:205] 1 1 1 0 1 1 1 0 1 0 ...
#>  $ age      : num [1:205] 76 56 41 71 52 28 77 60 49 68 ...
#>  $ year     : num [1:205] 1972 1968 1977 1968 1965 ...
#>  $ thickness: num [1:205] 6.76 0.65 1.34 2.9 12.08 ...
#>  $ ulcer    : num [1:205] 1 0 0 0 1 1 1 1 1 1 ...
#>  - attr(*, "spec")=List of 3
#>   ..$ cols   :List of 7
#>   .. ..$ time     : list()
#>   .. .. ..- attr(*, "class")= chr [1:2] "collector_double" "collector"
#>   .. ..$ status   : list()
#>   .. .. ..- attr(*, "class")= chr [1:2] "collector_double" "collector"
#>   .. ..$ sex      : list()
#>   .. .. ..- attr(*, "class")= chr [1:2] "collector_double" "collector"
#>   .. ..$ age      : list()
#>   .. .. ..- attr(*, "class")= chr [1:2] "collector_double" "collector"
#>   .. ..$ year     : list()
#>   .. .. ..- attr(*, "class")= chr [1:2] "collector_double" "collector"
#>   .. ..$ thickness: list()
#>   .. .. ..- attr(*, "class")= chr [1:2] "collector_double" "collector"
#>   .. ..$ ulcer    : list()
#>   .. .. ..- attr(*, "class")= chr [1:2] "collector_double" "collector"
#>   ..$ default: list()
#>   .. ..- attr(*, "class")= chr [1:2] "collector_guess" "collector"
#>   ..$ skip   : num 1
#>   ..- attr(*, "class")= chr "col_spec"
head(melanoma)
#> # A tibble: 6 × 7
#>    time status   sex   age  year thickness ulcer
#>   <dbl>  <dbl> <dbl> <dbl> <dbl>     <dbl> <dbl>
#> 1    10      3     1    76  1972      6.76     1
#> 2    30      3     1    56  1968      0.65     0
#> 3    35      2     1    41  1977      1.34     0
#> 4    99      3     0    71  1968      2.9      0
#> 5   185      1     1    52  1965     12.1      1
#> 6   204      1     1    28  1971      4.84     1
summary(melanoma$time)
#>    Min. 1st Qu.  Median    Mean 3rd Qu.    Max. 
#>      10    1525    2005    2153    3042    5565 
table(melanoma$status, melanoma$ulcer)
#>    
#>      0  1
#>   1 16 41
#>   2 92 42
#>   3  7  7