powered by
'chest_forest' plots effect estimates and change-in-estimate values with forestplot package.
'chest_forest'
forestplot
chest_forest( data, var_lab = "Variables", est_lab = "Estimate (95% CI)", change_lab = "Change, %", digits = "%.2f", digits_change = "%.1f", hrzl_lines = gpar(col = "#444444"), plus = " + ", ... )
A table with effect estimates and their changes at all steps.
Object from chest_cox, chest_glm, chest_lm, chest_clogit, or chest_nb, including effect estimate values and change-in-estimate values.
chest_cox
chest_glm
chest_lm
chest_clogit
chest_nb
Character string for the column name of variables in the graph.
Character string for the column name of effect estimates.
Character string for the column name of "Changes".
Set the display format for number in the graph other than the "Change" column. Default: "%.2f"
Set the format for the "Change" column. Default: "%.1f"
A logic to include or remove horizontal line.
Change the + sign before variable names.
+
Further optional arguments for forestplot.
'forestplot'
vlist <- c("Age", "Sex", "Married", "Cancer", "CVD", "Education", "Income") results <- chest_cox(crude = "Surv(t0, t1, Endpoint) ~ Diabetes", xlist = vlist, data = diab_df) chest_forest(results)
Run the code above in your browser using DataLab