Learn R Programming

causal.decomp (version 0.2.0)

sdata: Synthetic Data for Illustration

Description

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

Usage

sdata

Arguments

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. (2024).

References

Park, S., Kang, S., and Lee, C. (2024). "Choosing an optimal method for causal decomposition analysis with continuous outcomes: A review and simulation study", Sociological methodology, 54(1), 92-117.