CensoringType

The censoring mechanism of a Surv response.

Usage

Source

CensoringType

Each member corresponds to one of the Surv constructors and describes how incomplete observations are handled:

  • RIGHT: Classic right-censoring. All subjects enter at time 0, and some are lost before the event occurs (Surv.right()).
  • LEFT: Left-censoring. The event is known to have occurred before the observation time (Surv.left()).
  • INTERVAL: Interval-censoring. The event is known to lie within a time bracket (Surv.interval()).
  • COUNTING: Counting-process (start, stop] intervals with possible late entry and time-varying covariates (Surv.counting()).

A constructed response reports its censoring type through Surv(...).type, which is one of these values.

Examples

List all available censoring types:

from greenwood import CensoringType

# List all supported censoring mechanisms
list(CensoringType)
[<CensoringType.RIGHT: 'right'>,
 <CensoringType.LEFT: 'left'>,
 <CensoringType.INTERVAL: 'interval'>,
 <CensoringType.COUNTING: 'counting'>]

Attributes

Name Description
COUNTING
INTERVAL
LEFT
RIGHT

COUNTING

COUNTING="counting"


INTERVAL

INTERVAL="interval"


LEFT

LEFT="left"