tMdat {twangMediation} | R Documentation |
Simulated data for twangMediation
Description
A simulate dataset for demonstrating the functions in the twangMediation package.
Usage
tMdat
Format
A data frame with 500 rows and 7 variables:
- w1
Simulated continuous covariate
- w2
Simulated continuous covariate
- w3
Simulated continuous covariate
- A
Simulated dichotomous exposure indicator
- Y
Simulated continuous outcome
- M
Simulated mediator that has 11 unique values
- te.wgt
Estimated inverse probability weight, estimated using GBM via the twang ps function
Value
tMdat |
A sample of simulated data for demonstration |
See Also
Examples
## Not run:
data(tMdat)
## End(Not run)
[Package twangMediation version 1.2 Index]