Generates simulated data to illustrate the gapclosing function
generate_simulated_data(n = 1000)Number of observations to be generated
A data frame with n rows and 4 columns containing simulated data containing category over which disparities are defined, a confounder that affects treatment assignment, a binary treatment, and a continuous outcome.
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/.