Censoring

Censoring[t,c]

represents a censored event time t with censoring c.

Censoring[{t1,t2,},c]

represents a vector of censored event times ti with censoring c.

Censoring[{t1,t2,},{c1,c2,}]

represents a vector of event times ti with corresponding censoring ci.

Details

  • 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

Examples

open allclose all

Basic Examples  (2)

Use with right-censored data in SurvivalDistribution:

Convert tables with censoring indicators to interval notation:

Scope  (6)

Convert a right-censored observation to interval notation:

Alternatively, use Right:

Work with left-censored observations:

Alternatively, use Left:

The observation is unchanged in the absence of censoring:

You can also specify no censoring as None:

Thread a single censoring indicator over a list of events:

Use a mix of censoring indicators:

Interval-censored observations are converted as well:

Possible Issues  (1)

A dataset of length 2 is treated as a single interval-censored observation:

One right-censored observation results in:

If two observations were intended, use two indicators:

Wolfram Research (2010), Censoring, Wolfram Language function, https://reference.wolfram.com/language/ref/Censoring.html.

Text

Wolfram Research (2010), Censoring, Wolfram Language function, https://reference.wolfram.com/language/ref/Censoring.html.

CMS

Wolfram Language. 2010. "Censoring." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/Censoring.html.

APA

Wolfram Language. (2010). Censoring. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Censoring.html

BibTeX

@misc{reference.wolfram_2024_censoring, author="Wolfram Research", title="{Censoring}", year="2010", howpublished="\url{https://reference.wolfram.com/language/ref/Censoring.html}", note=[Accessed: 21-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_censoring, organization={Wolfram Research}, title={Censoring}, year={2010}, url={https://reference.wolfram.com/language/ref/Censoring.html}, note=[Accessed: 21-November-2024 ]}