| love_plot | R Documentation |
Plots the standardized effect size for each covariate from
baseline_equivalence(), with reference lines at the What Works
Clearinghouse (WWC) thresholds (0.05 and 0.25) and points coloured by WWC
category. Requires the ggplot2 package.
love_plot(equivalence, signed = FALSE)
equivalence |
A data frame returned by |
signed |
Logical. If |
A ggplot object.
if (requireNamespace("ggplot2", quietly = TRUE)) {
df <- data.frame(
treat = c(1, 1, 1, 0, 0, 0),
pretest = c(5, 6, 7, 4, 5, 6),
female = c(1, 0, 1, 0, 0, 1)
)
love_plot(baseline_equivalence(df, "treat"))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.