CensoringType

The censoring flavor of a Surv response.

Usage

Source

CensoringType

Examples

The members correspond to the Surv constructors. A constructed response reports its flavor through Surv(...).type, which is one of these values.

from greenwood import CensoringType

list(CensoringType)
[<CensoringType.RIGHT: 'right'>,
 <CensoringType.LEFT: 'left'>,
 <CensoringType.INTERVAL: 'interval'>,
 <CensoringType.COUNTING: 'counting'>]

Attributes

Name Description
COUNTING The censoring flavor of a Surv response.
INTERVAL The censoring flavor of a Surv response.
LEFT The censoring flavor of a Surv response.
RIGHT The censoring flavor of a Surv response.

COUNTING

The censoring flavor of a Surv response.

COUNTING="counting"

The members correspond to the Surv constructors. A constructed response reports its flavor through Surv(...).type, which is one of these values.

from greenwood import CensoringType

list(CensoringType)
[<CensoringType.RIGHT: 'right'>,
 <CensoringType.LEFT: 'left'>,
 <CensoringType.INTERVAL: 'interval'>,
 <CensoringType.COUNTING: 'counting'>]

INTERVAL

The censoring flavor of a Surv response.

INTERVAL="interval"

The members correspond to the Surv constructors. A constructed response reports its flavor through Surv(...).type, which is one of these values.

from greenwood import CensoringType

list(CensoringType)
[<CensoringType.RIGHT: 'right'>,
 <CensoringType.LEFT: 'left'>,
 <CensoringType.INTERVAL: 'interval'>,
 <CensoringType.COUNTING: 'counting'>]

LEFT

The censoring flavor of a Surv response.

LEFT="left"

The members correspond to the Surv constructors. A constructed response reports its flavor through Surv(...).type, which is one of these values.

from greenwood import CensoringType

list(CensoringType)
[<CensoringType.RIGHT: 'right'>,
 <CensoringType.LEFT: 'left'>,
 <CensoringType.INTERVAL: 'interval'>,
 <CensoringType.COUNTING: 'counting'>]