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
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/.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.