pluck_multivariate_analysis {survivalAnalysis}R Documentation

Access individual components of multivariate survival analysis

Description

Allows access to the analyse_multivariate result object.

Usage

pluck_multivariate_analysis(result, term)

Arguments

result

An object of class SurvivalAnalysisMultivariateResult as returned by analyse_multivariate

term

The item to be retrieved:

  • "coxph" containing the result of the coxph function

  • "summary" containing the result of the summary of the "coxph" result

  • "summary_data_frame" containing summary as a data frame (see multivariate_as_data_frame)

  • "p" A vector of p values for the covariates, equivalent to the "p" column of "summary_data_frame"

  • "overall" A named list with human-readable labels giving information about the overall fit, including the three flavors of p values contained in "summary"

Value

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

Examples

library(magrittr)
library(dplyr)
survival::colon %>%
   analyse_multivariate(vars(time, status),
                        vars(rx, sex, age, obstruct, perfor, nodes, differ, extent)) %>%
   pluck_multivariate_analysis("p")
   print

[Package survivalAnalysis version 0.3.0 Index]