pluck_multivariate_analysis: Access individual components of multivariate survival...

Description Usage Arguments Value Examples

View source: R/cox.R

Description

Allows access to the analyse_multivariate result object.

Usage

1

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

1
2
3
4
5
6
7
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

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