pluck_survival_analysis: Access individual components of univariate survival analysis

Description Usage Arguments Value Examples

Description

Allows access to the analyse_survival result object.

Usage

1

Arguments

result

An object of class SurvivalAnalysisUnivariateResult as returned by analyse_survival

term

The item to be retrieved:

  • "survfit" containing the result of the survfit function

  • "survdiff" containing the result of the survdiff function

  • "survfit_overall" containing the result of the survfit function without terms, i.e. the full group not comparing subgroups

  • "coxph" containing the result of the coxph function

  • "p" The log-rank p value (if by provided at least two strata)

Value

object as specified by term, or NULL if not contained in result

Examples

1
2
3
4
5
6
library(magrittr)
library(dplyr)
survival::aml %>%
  analyse_survival(vars(time, status), x) %>%
  pluck_survival_analysis("p") %>%
  print

survivalAnalysis documentation built on Feb. 11, 2022, 5:07 p.m.