print.mdn: Print Method for Class "mdn"

Description Usage Arguments Details Author(s) Examples

Description

print.mdn is the print utility for the output from function mdn

Usage

1
2
## S3 method for class 'mdn'
print(x, ...)

Arguments

x

an output from function mdn

...

not used.

Details

The p-value for the mediated effect is displayed as greater or smaller than sig.level. For instance, if it is not significant at level 0.05, then “> 0.05” is displayed.

Author(s)

Kai Wang <kai-wang@uiowa.edu>

Examples

1
2
3
4
5
data("jobs", package = "mediation")

fit.M <- lm(job_seek ~ treat + econ_hard + sex + age, data=jobs)
fit.Y <- lm(depress2 ~ treat + job_seek + econ_hard + sex + age, data=jobs)
mdn(fit.M, fit.Y, "treat")

iMediate documentation built on May 2, 2019, 4:32 a.m.