sdata {causal.decomp}R Documentation

Synthetic Data for Illustration

Description

A randomly generated dataset containing 1000 rows and 9 columns with no missing values.

Usage

sdata

Format

A data frame containing the following variables. The data are provided only for explanatory purposes. The mediators are assumed to be independent of each other.

C.num:

A quantitative covariate.

C.bin:

A binary covariates with a value of 0 or 1.

R:

A group indicator with four levels.

X:

A quantitative intermediate confounder between a mediator and the outcome.

M.num:

A quantitative mediator.

M.bin:

A binary mediator with a value of 0 or 1.

M.cat:

A categorical mediator with three levels.

Y.num:

A quantitative outcome.

Y.bin:

A binary outcome with a value of 0 or 1.

Details

Note that all the variables are randomly generated using the dataset used in Park et al. (2021+).

References

Park, S., Kang, S., and Lee, C. (2021+). "Choosing an Optimal Method for Causal Decomposition Analysis: A Better Practice for Identifying Contributing Factors to Health Disparities".


[Package causal.decomp version 0.1.0 Index]