generate_simulated_data: Generate simulated data

Description Usage Arguments Value References

View source: R/generate_simulated_data.R

Description

Generates simulated data to illustrate the gapclosing function

Usage

1

Arguments

n

Number of observations to be generated

Value

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.

References

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/.


gapclosing documentation built on Oct. 11, 2021, 9:07 a.m.