tbl_group_forests | R Documentation |
Grouped Forest Plots
tbl_group_forests(
object,
formula,
type,
vars,
level = list(),
columns = list(beta ~ "Estimate", conf ~ "95% CI", n ~ "No."),
flip = FALSE,
axis = list(scale ~ "continuous"),
width = list()
)
object |
A |
formula |
Identifies the relationships of interest, with LHS representing the outcome, and RHS representing the exposure. |
type |
Character vector to identify if the model was using subgroups or interaction terms. The difference is that confidence intervals for interaction can be calculated in multiple ways, and the effect size is dependent on the presence or absence of the interaction variable.
|
vars |
Character vector of the variables of interest. They can either be
grouping variables, or can be performed as interaction terms (based on the
models included originally). If the parameter interaction is changed to
|
level |
List of formulas. Each list-element is a formula with the LHS reflecting either the variable to re-label or a specific level, and the RHS reflecting what the new level should be called (for display). If there are conflicting labels, the most recent will be used. For example, The alternative approach is to use the specific level itself and have it
re-labeled. |
columns |
Additional columns that help to describe the subgroup models. At least one column should be selected from this list. The sequence listed will reflect the sequence shown in the table. The current options are:
For example: |
flip |
Determine if the odds or hazard ratio should be shown as the reciprocal values. Instead of a decreasing hazard for every unit increase, it describes an increasing hazard for every unit decrease. |
axis |
Argument to help modify the forest plot itself. This is a list-formula of the following parameters. If they are not named, the function will attempt to "guess" the optimal parameters. The options are:
For example: |
width |
Describes the width of each column in a list of two-sided formulas. The RHS is a decimal reflecting the percent each column should take of the entire table. The forest plot is usually given 30% of the width. For example: |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.