Estimate or extract the p-values for indirect effects in (robust) mediation analysis.
1 2 3 4 5 6 7
an object inheriting from class
additional arguments are currently ignored.
an integer determining the number of digits of the p-values to be computed. The default is to compute 4 digits after the comma.
For bootstrap tests, the p-value is estimated as the smallest significance level alpha for which the (1 - alpha) * 100% confidence interval obtained from the bootstrapped distribution of the indirect effect does not contain 0.
This is a simple implementation, where each digit after the comma is
determined via a grid search. Hence computation time can be long if
confidence intervals are computed via the bias-corrected and accelerated
For Sobel tests, the p-value is already stored in the object returned by
test_mediation and simply extracted.
A numeric vector containing the p-values for the indirect effect(s).
1 2 3 4 5 6 7 8 9 10 11 12
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.