testMediation.Sobel {powerMediation} | R Documentation |
P-value and confidence interval for testing mediation effect (Sobel's test)
Description
Calculate p-value and confidence interval for testing mediation effect based on Sobel's test.
Usage
testMediation.Sobel(theta.1.hat,
lambda.hat,
sigma.theta1,
sigma.lambda,
alpha = 0.05)
Arguments
theta.1.hat |
estimated regression coefficient for the predictor in the linear regression linking
the predictor |
lambda.hat |
estimated regression coefficient for the mediator in the linear regression linking
the predictor |
sigma.theta1 |
standard deviation of |
sigma.lambda |
standard deviation of |
alpha |
significance level of a test. |
Details
The test is for testing the null hypothesis
versus the alternative hypothesis
for the linear regressions:
Test statistic is based on Sobel's (1982) test:
where is the estimated standard deviation
of the estimate
using multivariate
delta method:
and
is the estimated standard deviation
of the estimate
, and
is the estimated standard deviation
of the estimate
.
Value
pval |
p-value for testing the null hypothesis |
CI.low |
Lower bound of the |
CI.upp |
Upper bound of the |
Note
The test is a two-sided test. For one-sided tests, please double the
significance level. For example, you can set alpha=0.10
to obtain one-sided test at 5% significance level.
Author(s)
Weiliang Qiu stwxq@channing.harvard.edu
References
Sobel, M. E. Asymptotic confidence intervals for indirect effects in structural equation models. Sociological Methodology. 1982;13:290-312.
See Also
powerMediation.Sobel
,
ssMediation.Sobel
Examples
testMediation.Sobel(theta.1.hat=0.1701, lambda.hat=0.1998,
sigma.theta1=0.01, sigma.lambda=0.02, alpha=0.05)