batch_surv | R Documentation |
This function is used to perform batch survival analysis. It calculates hazard ratios and confidence intervals for the specified variables based on the given data containing time-related information.
batch_surv(
pdata,
variable,
time = "time",
status = "status",
best_cutoff = FALSE
)
pdata |
The data frame containing the data. |
variable |
The variables to perform survival analysis on. |
time |
The column name representing time. Default is "time". |
status |
The column name representing status. Default is "status". |
best_cutoff |
Whether to use the best cutoff for survival analysis. Default is FALSE. If set to TRUE, the function will calculate hazard ratios and confidence intervals for the binary version of the variables using the best cutoff method. |
A data frame containing hazard ratios and confidence intervals.
Dongqiang Zeng
# Loading TCGA-STAD microenvironment signature data
data("sig_stad", package = "IOBR")
# Identifying signatures associated with gastric cancer patient survival
batch_surv(pdata = sig_stad, variable = colnames(sig_stad)[69:ncol(sig_stad)], time = "OS_time", status = "OS_status")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.