Censoring

Censoring[t, c]
represents a censored event time t with censoring c.

Censoring[{t1, t2, ...}, c]
represents a vector of censored event times with censoring c.

Censoring[{t1, t2, ...}, {c1, c2, ...}]
represents a vector of event times with corresponding censoring .

DetailsDetails

  • Censoring[data, cens] is typically used as a way to preprocess data for SurvivalDistribution when data is provided with a separate censoring vector.
  • The following censoring types c can be used in Censoring[t, c]:
  • 0, None{t,t}no censoring
    1, Right{t,∞}right-censoring
    -1,Left{-∞,t}left-censoring

ExamplesExamplesopen allclose all

Basic Examples (2)Basic Examples (2)

Use with right-censored data in SurvivalDistribution:

In[1]:=
Click for copyable input
In[2]:=
Click for copyable input
Out[2]=
In[3]:=
Click for copyable input
Out[3]=

Convert tables with censoring indicators to interval notation:

In[1]:=
Click for copyable input
In[2]:=
Click for copyable input
Out[2]=
New in 8
New to Mathematica? Find your learning path »
Have a question? Ask support »