Plots the factual and counterfactual mean outcomes in two categories. The returned object is a ggplot2 object which can be further customized using the syntax of ggplot2.
disparityplot(
x,
category_A,
category_B,
custom_ylab = "Mean Outcome",
custom_xlab = "Category"
)An object of class gapclosing, which results from a call to the function gapclosing
The first category to be plotted. A value of the category_name variable in x.
The second category to be plotted. Must be a value of x$category
Custom y-axis label. Defaults to "Mean Outcome"
Custom x-axis label. Defaults to "Category"
A ggplot2 object
Lundberg I (2021). "The gap-closing estimand: A causal approach to study interventions that close disparities across social categories." Sociological Methods and Research. Available at https://osf.io/gx4y3/.