Description Usage Arguments Examples
View source: R/multivariate_forest.R
This function takes a data frame and performs Multivariate cox regression, prints a forrest plot, and returns a table that can use code from cox_univariate_plotter to customize the plot.
1 2 3 |
data |
A data frame that contains an outcome column, time column, and a column name within columns_to_test. |
columns_to_test |
The columns to test from the data, if NONE, all columns are included |
time |
The continuous time to event column for the regression analysis. Default: "TIME" |
outcome |
The binary outcome column of the data. Default: "OUTCOME" |
title |
Title at top of plot. Default: "Forest Plot for Hazard" |
keep_insignificant |
When FALSE, p value greater than 0.05 are not included in the output, but remain in calculation. With TRUE, all variables remain shown. Default: TRUE |
show_only |
A vector of the variables to show in output. If empty vector, all are shown. Default: c() |
verbose |
the amount of status log output provided. Default: TRUE |
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.