Assignment
Assignment
The Kaplan-Meier estimator is used to estimate the survival function from lifetime data. The formula for
the Kaplan-Meier estimator is:
where:
Let's compute the Kaplan-Meier estimates for both Drug A and Drug B.
Drug A:
21+ 7 0 0.8750.875
24+ 6 0 0.750.75
37+ 4 0 0.50.5
12+ 6 0 0.750.75
19+ 4 0 0.50.5
Survival Curves
To plot the survival curves, we can use the survival probabilities calculated above.
The median survival time is the time at which the survival probability is 0.5.
The cumulative hazard function H(t)H(t) is related to the survival function S(t)S(t) by the formula:
H(t)=−ln(S(t))H(t) = -\ln(S(t))
Drug A appears to be more effective as it has a higher median survival time (32 days vs. 15 days) and a
lower cumulative hazard at 20 days (0.1335 vs. 0.2877). This suggests that mice treated with Drug A have
a better survival rate compared to those treated with Drug B.