labbe function

L'Abbe plot for binary data

L'Abbe plot for binary data

This plot shows relationship between proportions of events in control and treatment groups in binary data.

labbe( data, group = "group", plot_model = FALSE, labels = TRUE, shade_se = c("rr", "or", "none") )

Arguments

  • data: a data frame with binary data (must have columns a, c, b/n1, d/n2)
  • group: a character string specifying group names (e.g. study names), used for labels;
  • plot_model: if TRUE, then odds ratios and risk ratios baggr models are estimated (using default settings) and their mean estimates of effects are plotted as lines
  • labels: if TRUE, names from the group column are displayed
  • shade_se: if "none", nothing is plotted, if "or" or "rr", a shaded area corresponding to inverse of effect's (OR or RR) SE is added to each data point; the default is "rr"

Returns

A ggplot object

See Also

vignette("baggr_binary") for an illustrative example

  • Maintainer: Witold Wiecek
  • License: GPL (>= 3)
  • Last published: 2024-02-12