Experimental Drug Efficacy

Researchers interested in the effectiveness of a new tumor suppression medication recorded time to tumor for cancer patients. Forty-three patients were treated with an older drug (A) and 76 were treated with the new drug (B).

    
In[76]:=
Click for copyable input
The survival functions cross:
In[78]:=
Click for copyable input
Out[78]=
LogRankTest does not detect a significant difference in the underlying hazard rates:
In[79]:=
Click for copyable input
Out[79]=
Suppose researchers expected that the new drug is more effective at preventing late-developing tumors. The following Fleming-Harrington weights emphasize late survival times:
In[80]:=
Click for copyable input
Out[80]=
LogRankTest weighted for late survival detects a significant difference:
In[81]:=
Click for copyable input
Out[81]=
New to Mathematica? Find your learning path »
Have a question? Ask support »