rob_direction: Bias direction plots

View source: R/rob_direction.R

rob_directionR Documentation

Bias direction plots

Description

Used to

Usage

rob_direction(
  dat,
  vi = NULL,
  sei = NULL,
  title = NULL,
  legend_cex = 0.9,
  grouping = "type",
  grouping_levels = c("MR", "NRSI", "NRSE", "RCT"),
  label_subgroup_summary = "RE Model for Subgroup",
  ...
)

Arguments

dat

Dataframe

vi

Vector containing the sampling variances (normally defined as the column within the dataset, i.e. dat$vi). Note: either vi or sei must be set.

sei

Vector containing the corresponding standard errors (normally defined as the column within the dataset, i.e. dat$sei). Note: either vi or sei must be set.

title

Graph title

legend_cex

Expansion factor for figure legend.

grouping

Variable of the provided dataset by which the resulting plot will be stratified. Often will study design or overall risk-of-bias level.

grouping_levels

Ordering of grouping variable. Note: the levels will be plotted in order, starting at the bottom of the graph (i.e. the last item in the vector will be placed at the top of the graph)

label_subgroup_summary

Annotation text for subgroup label

...

Other arguments to pass to metafor::forest


mcguinlu/robvis documentation built on July 4, 2023, 11:15 p.m.