testdata | R Documentation |
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
).
testdata
A data frame with 1000 rows and 9 variables:
Exposure variable (continuous).
Exposure variable (binary: 0/1).
Exposure variable (binary character: male and female).
Mediator variable (binary: 0/1).
Outcome variable (continuous).
Outcome variable (ordinal).
Covariate 1 (binary).
Covariate 2 (discrete).
Covariate 3 (continuous).
Simulated data for package demonstration.
data(testdata)
head(testdata)
summary(testdata)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.