generate_simulated_data {gapclosing}R Documentation

Generate simulated data

Description

Generates simulated data to illustrate the gapclosing function

Usage

generate_simulated_data(n = 1000)

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


[Package gapclosing version 1.0.2 Index]