multivariate_as_data_frame: Turns a multivariate analysis result to a data frame

Description Usage Arguments Value

View source: R/cox.R

Description

Extracts useful information into a data frame which is ready for printing or further analysis

Usage

1
multivariate_as_data_frame(result, factor_id_sep = ":", sort_by = NULL)

Arguments

result

An object of class "SurvivalAnalysisMultivariateResult" as returned by analyse_multivariate

factor_id_sep

The frame contains one column "factor.id" which is a composite of covariate name and, if categorical, the factor level (one line for each factor level except for the reference level)

sort_by

A vars() list of one or more symbolic column names. This frame contains the variables "Lower_CI", "HR", "Upper_CI", "Inv_Lower_CI", "Inv_HR", "Inv_Upper_CI", "p". You can choose to sort by any combination. Use desc() to sort a variable in descending order.

Value

A tibble.


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