powered by
Allows access to the analyse_survival result object.
analyse_survival
pluck_survival_analysis(result, term)
An object of class SurvivalAnalysisUnivariateResult as returned by analyse_survival
The item to be retrieved:
"survfit" containing the result of the survfit function
"survfit"
survfit
"survdiff" containing the result of the survdiff function
"survdiff"
survdiff
"survfit_overall" containing the result of the survfit function without terms, i.e. the full group not comparing subgroups
"survfit_overall"
"coxph" containing the result of the coxph function
"coxph"
coxph
"p" The log-rank p value (if by provided at least two strata)
"p"
by
object as specified by term, or NULL if not contained in result
term
result
# NOT RUN { library(magrittr) library(dplyr) survival::aml %>% analyse_survival(vars(time, status), x) %>% pluck_survival_analysis("p") %>% print # }
Run the code above in your browser using DataLab