WOLFRAM LANGUAGE FEATURED EXAMPLE

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[1]:=
Click for copyable input
The survival functions cross:
In[2]:=
Click for copyable input
Out[2]=
LogRankTest does not detect a significant difference in the underlying hazard rates:
In[3]:=
Click for copyable input
Out[3]=
Suppose researchers expected that the new drug is more effective at preventing late-developing tumors. The following FlemingHarrington weights emphasize late survival times:
In[4]:=
Click for copyable input
Out[4]=
LogRankTest weighted for late survival detects a significant difference:
In[5]:=
Click for copyable input
Out[5]=