Solution: Leukemia treatment study (Exam 2021)
Eksempel
The Kaplan-Meyer estimates and corresponding confidence intervals may be found and plotted by the following R commands:
The resulting plots are shown in Figure 1 and 2.
Confidence intervals for the median survival times can be found by drawing a horisontal line at survival probability equal to \(0.5\) and reading off at which times \(t\) this line crosses the confidence interval curves. The process is illustrated by green lines in the two plots in Figure 1 and 2.
Note that for the 6MP group the upper limit in the confidence interval is equal to infinity. The numerical values for the confidence intervals can either be read off from the plots or they can be found by inspecting the R variables KMPlacebo and KM6MP produced in the R code above, which can be done by the R commands below.
The confidence interval for the Placebo group becomes \(\underline{\underline{[4,11]}}\) and for the 6MP group it becomes \(\underline{\underline{[13,\infty)}}\).