dropNotCensored,SurvivalExperiment-method {PDATK} | R Documentation

## Remove Censored Patients from A `SurvivalExperiment` Object

### Description

Remove Censored Patients from A `SurvivalExperiment` Object

### Usage

    ## S4 method for signature 'SurvivalExperiment'
    dropNotCensored(object, minDaysSurvived = 365)

### Arguments

`object` | A `SurvivalExperiment` to censor.
`minDaysSurvived` | An `integer` specifying the minimum number of days a patient needs to have survived to be included in the cohort.

### Details

Censored means no event before end of measurement. Since we want not censored, we keep patients who had an event before minDaysSurvived. Therefore we keep individuals surviving > `minDaysSurvived`, or who had an event (died) before minDaysSurvived.

### Value

The `SurvivalExperiment` with censored samples removed.

### Examples

    data(sampleICGCmicro)
    ICGCmicro <- dropNotCensored(sampleICGCmicro)

[Package PDATK version 1.2.0 Index]