# NOT RUN {
data(sim.weights)
msmediate.weights(data = sim.weights, y = "y", treatment = "tr", mediator = "me",
response = "R", XR1 = c("x1", "x2", "x3"), XR0 = c("x1", "x2", "x3"), XM1 = c("x1",
"x2", "x3"), XM0 = c("x1", "x2", "x3"), site = "site", sample.weight = "WD")
# }
Run the code above in your browser using DataLab