# NOT RUN {
# Example 1: Bounds without SI assumption
data(boundsdata)
data.SED <- subset(boundsdata, manip == 0)
bound1 <- mediate.sed("out", "med", "ttt", data.SED, SI=FALSE)
summary(bound1)
# Example 2: Nonparametric estimate of ACME under SI assumption
# Example with JOBS II Field Experiment
data(jobs)
foo.1 <- mediate.sed("depress2", "job_disc", "treat", jobs, SI=TRUE)
summary(foo.1)
foo.2 <- mediate.sed("depress2", "job_disc", "treat", jobs, SI=TRUE, boot=TRUE)
summary(foo.2)
# }
Run the code above in your browser using DataLab