surv_designation {pmartR} | R Documentation |
Create a "surv_DF" attribute so that survival analysis can be implemented.
Description
This function will add the necessary information to omicsData such that survival analysis can be applied to it.
Usage
surv_designation(
omicsData,
t_death,
t_progress = NULL,
ind_death,
ind_progress = NULL,
covariates = NULL
)
Arguments
omicsData |
an object of the class 'lipidData', 'metabData', 'pepData',
or 'proData' usually created by |
t_death |
the column in 'f_data' that corresponds to the subjects' time of death |
t_progress |
the column in 'f_data' that corresponds to the subjects' time of progression |
ind_death |
the column in 'f_data' that corresponds to the subjects' status, e.g. alive/dead |
ind_progress |
the column in 'f_data' that corresponds to the subjects' progression status |
covariates |
the column(s) in 'f_data' that correspond to covariates to be included in the survivial analysis |
Value
omicsData is returned with the additional attribute
Author(s)
Bryan Stanfill
[Package pmartR version 2.4.5 Index]