Skip to contents

A direct alias for plot_smd_balance. Produces a Cleveland-style Love plot of absolute SMD with conventional threshold reference lines.

Usage

plot_balance_love(x, ...)

Arguments

x

A "smd_balance_table" object from smd_balance_table.

...

Arguments forwarded to plot_smd_balance.

Value

A ggplot object.

Examples

# \donttest{
if (requireNamespace("ggplot2", quietly = TRUE)) {
  group <- c(rep(0L, 20), rep(1L, 20))
  X     <- data.frame(A = c(rep(0L,20), rep(1L,20)),
                       B = rnorm(40))
  smd <- smd_balance_table(group, X)
  p   <- plot_balance_love(smd)
  print(p)
}

# }