Description Usage Arguments Examples
View source: R/univariate_forest.R
This function takes a data frame and iteratively performs univariate 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 | univariate_forest(data, columns_to_test, time = "TIME",
outcome = "OUTCOME", title = "Forest Plot for Hazard",
verbose = TRUE)
|
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 |
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" |
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.