labbe {baggr}R Documentation

L'Abbe plot for binary data

Description

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

Usage

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"

Value

A ggplot object

See Also

vignette("baggr_binary") for an illustrative example


[Package baggr version 0.6.4 Index]