tnsCox,TNS-method {RTNsurvival} | R Documentation |
Run Cox multivariate regression for regulons and other covariates.
## S4 method for signature 'TNS' tnsCox(tns, regs = NULL, qqkeycovar = FALSE, verbose = TRUE)
tns |
A TNS object, which must have passed GSEA2 analysis. |
regs |
An optional string vector listing regulons to be tested. |
qqkeycovar |
A logical value. If TRUE, only the samples in the 2nd and
3rd quartils of 'keycovar' are used in the analysis. If FALSE, all samples
are used (see |
verbose |
A logical value specifying to display detailed messages (when verbose=TRUE) or not (when verbose=FALSE). |
Cox hazard models and statistics.
# load survival data data(survival.data) # load TNI-object data(stni, package = "RTN") stns <- tni2tnsPreprocess(stni, survivalData = survival.data, keycovar = c('Age','Grade'), time = 1, event = 2) stns <- tnsGSEA2(stns) stns <- tnsCox(stns, regs = c('PTTG1','E2F2','FOXM1')) tnsGet(stns, "coxTable")