50% off | Unlimited Data & AI Learning

Last chance! 50% off unlimited learning

Sale ends in


twangMediation (version 1.2)

tMdat: Simulated data for twangMediation

Description

A simulate dataset for demonstrating the functions in the twangMediation package.

Usage

tMdat

Arguments

Value

tMdat

A sample of simulated data for demonstration

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

See Also

wgtmed

Examples

Run this code
if (FALSE) {
data(tMdat)
}

Run the code above in your browser using DataLab