Exercise 3. Localised melanoma: Comparing estimates of cause-specific survival between periods; first graphically and then using the log rank test

You may have to install the required packages the first time you use them. You can install a package by install.packages("package_of_interest") for each package you require.

We will now analyse the full data set of patients diagnosed with localised skin melanoma. We start by reading the data selecting those with a localised stage and then define a 1/0 varible for the events that we are interested in.

(a)

There seems to be a clear difference in survival between the two periods. Patients diagnosed during 1985–94 have superior survival to those diagnosed 1975–84.

(b)

The plot shows the instantaneous cancer-specific mortality rate (the hazard) as a function of time. It appears that mortality is highest approximately 40 months following diagnosis. Remember that all patients were classified as having localised cancer at the time of diagnosis so we would not expect mortality to be high directly following diagnosis.

The plot of the hazard clearly illustrates the pattern of cancer-specific mortality as a function of time whereas this pattern is not obvious in the plot of the survivor function.

(c)

There is strong evidence that survival differs between the two periods. The log-rank and the Wilcoxon tests give very similar results. The Wilcoxon test gives more weight to differences in survival in the early period of follow-up (where there are more individuals at risk) whereas the log rank test gives equal weight to all points in the follow-up. Both tests assume that, if there is a difference, a proportional hazards assumption is appropriate.

## Call:
## survdiff(formula = Surv(surv_mm, death_cancer) ~ year8594, data = melanoma)
## 
##                             N Observed Expected (O-E)^2/E (O-E)^2/V
## year8594=Diagnosed 75-84 2145      572      512      7.03      15.5
## year8594=Diagnosed 85-94 3173      441      501      7.18      15.5
## 
##  Chisq= 15.5  on 1 degrees of freedom, p= 8e-05
## Call:
## survdiff(formula = Surv(surv_mm, death_cancer) ~ year8594, data = melanoma, 
##     rho = 1)
## 
##                             N Observed Expected (O-E)^2/E (O-E)^2/V
## year8594=Diagnosed 75-84 2145      502      447      6.82      16.2
## year8594=Diagnosed 85-94 3173      400      455      6.70      16.2
## 
##  Chisq= 16.2  on 1 degrees of freedom, p= 6e-05

(d)

We see that mortality increases with age at diagnosis (and survival decreases).

##              agegrp    tstop event     rate    lower    upper
## agegrp=0-44    0-44 157.1215   217 1.381097 1.203441 1.577593
## agegrp=45-59  45-59 148.8215   282 1.894887 1.680159 2.129453
## agegrp=60-74  60-74 121.3380   333 2.744400 2.457518 3.055574
## agegrp=75+      75+  36.2380   181 4.994757 4.293585 5.777786

The rates are (cause-specific) deaths per 1000 person-months. When we use Surv we defined time as time in months and then asked for rates per 1000 units of time.

What are the units of the estimated hazard rates? HINT: look at how you defined time.

(f)

## Call:
## survdiff(formula = Surv(surv_mm, death_cancer == 1) ~ sex, data = melanoma)
## 
##               N Observed Expected (O-E)^2/E (O-E)^2/V
## sex=Male   2405      542      433      27.7      48.6
## sex=Female 2913      471      580      20.6      48.6
## 
##  Chisq= 48.6  on 1 degrees of freedom, p= 3e-12