testdata {unvs.med} | R Documentation |
Test Dataset for Causal Mediation Analysis
Description
A simulated dataset used in examples and vignettes to demonstrate the functionality
of the FormalEstmed
function. Contains variables for exposure (exp
),
mediator (med
), outcome (out
), and covariates (C1
, C2
, C3
).
Usage
testdata
Format
A data frame with 1000 rows and 9 variables:
- exp
Exposure variable (continuous).
- exp2
Exposure variable (binary: 0/1).
- exp3
Exposure variable (binary character: male and female).
- med
Mediator variable (binary: 0/1).
- out
Outcome variable (continuous).
- out2
Outcome variable (ordinal).
- C1
Covariate 1 (binary).
- C2
Covariate 2 (discrete).
- C3
Covariate 3 (continuous).
Source
Simulated data for package demonstration.
Examples
data(testdata)
head(testdata)
summary(testdata)
[Package unvs.med version 1.0.0 Index]