View source: R/forest_plot_1-to-many.R
format_1_to_many | R Documentation |
This function formats user-supplied results for the forest_plot_1_to_many()
function.
The user supplies their results in the form of a data frame.
The data frame is assumed to contain at least three columns of data:
effect estimates, from an analysis of the effect of an exposure on an outcome;
standard errors for the effect estimates; and
a column of trait names, corresponding to the 'many' in a 1-to-many forest plot.
format_1_to_many(
mr_res,
b = "b",
se = "se",
exponentiate = FALSE,
ao_slc = FALSE,
by = NULL,
TraitM = "outcome",
addcols = NULL,
weight = NULL
)
mr_res |
Data frame of results supplied by the user. |
b |
Name of the column specifying the effect of the exposure on the outcome. Default = |
se |
Name of the column specifying the standard error for b. Default = |
exponentiate |
Convert log odds ratios to odds ratios? Default= |
ao_slc |
Logical; retrieve trait subcategory information using |
by |
Name of the column indicating a grouping variable to stratify results on. Default= |
TraitM |
The column specifying the names of the traits. Corresponds to 'many' in the 1-to-many forest plot. Default= |
addcols |
Name of any additional columns to add to the plot. Character vector. The default is |
weight |
The default is |
data frame.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.