thresholdTTE: thresholdTTE

View source: R/pipeline_modules.R

thresholdTTER Documentation

thresholdTTE

Description

thresholdTTE

Usage

thresholdTTE(
  targetToFilter,
  objectsToFilter,
  threshold,
  eventColname = "Event",
  tteColname = "time_to_event"
)

Arguments

targetToFilter

A matrix or data.frame including a numerical column named 'time_to_event' and a binary 1/0 column named 'Event'. eventColname and/or tteColname must be specified if either or both of these columns do not have the default names.

objectsToFilter

A list of matrix/data.frame objects each with the same number of rows as targetToFilter. These will have the same rows (according to index) removed as targetToFilter

threshold

The time-to-event threshold which will be used.

eventColname

The name for the event column. Must be specified if not 'Event'.

tteColname

The name for the time-to-event column. Must be specified if not 'time_to_event'

Value

A list with elements targetFiltered and objectsFiltered corresponding to targetToFilter and objectsToFilter after thresholding. Thresholding involves the following: Rows with Event == 1 (cases) and time_to_event > threshold will be converted to Event == 0 (controls). Rows with Event == 0 and time_to_event <= threshold will be removed.


marioni-group/MethylPipeR documentation built on Oct. 10, 2024, 3:32 p.m.