summary_km | R Documentation |
Implements overall survival analysis or progression-free survival analysis, depending upon the datatypes supplied to surv_designation, and gives a summary of the results.
summary_km(omicsData, percent = NULL, ...)
omicsData |
A pmartR data object of any class, which has a 'group_df' attribute that is usually created by the 'group_designation()' function |
percent |
The percentile |
... |
extra arguments passed to regexpr if pattern is specified |
if 'percent' is provided then the time at which that probability of death is returned; else, the summary of the 'survival' object is returned
## Not run:
library(OvarianPepdataBP)
attr(tcga_ovarian_pepdata_bp, "survDF") <- list(t_death = "survival_time",
ind_death = "vital_status")
# No percent is provided so the entire object is returned
summary_km(tcga_ovarian_pepdata_bp)
# Percent is provided so corresponding time point is returned
summary_km(tcga_ovarian_pepdata_bp, .4)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.