MATHEMATICA FEATURED EXAMPLE

Baboon Descent Times

A study conducted in the Amboseli Reserve in Kenya observed a baboon troop for several days, recording the time at which half of the troop had descended from the trees in which they slept. On some days, the observers arrived early enough to observe this exactly. At other times, they arrived after this median descent time so the day's observation was left censored.

    
In[83]:=
Click for copyable input
Create a Nelson-Aalen model for the left-censored data and estimate the median:
In[84]:=
Click for copyable input
Out[85]=
Compute the probability that the median descent time is greater than 9 hours:
In[86]:=
Click for copyable input
Out[86]=
Visualize a 95% simultaneous band for the cumulative descent probability:
In[87]:=
Click for copyable input
Out[87]=
New to Mathematica? Find your learning path »
Have a question? Ask support »