Description Usage Arguments Value Author(s) See Also Examples

Supplement the estimated coefficients with other useful information for informative visualization of the (robust) mediation analysis results. It is thereby possible to construct data frames for dot plots of selected coefficients, as well as density plots of the indirect effect.

1 2 3 4 5 6 7 8 9 10 |

`model` |
an object inheriting from class |

`data` |
for the |

`method` |
a character string specifying for which plot to construct the
data frame. Possible values are |

`parm` |
a character string specifying the coefficients to be included in a dot plot. The default is to include the direct and the indirect effect(s). |

`...` |
additional arguments are currently ignored. |

`level` |
numeric; the confidence level of the confidence intervals from Sobel's test to be included in a dot plot. The default is to include 95% confidence intervals. |

A data frame containing the necessary data for the selected plot, as well as additional information stored in attributes.

Andreas Alfons

`test_mediation`

, `plot_mediation`

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | ```
data("BSG2014")
# run fast and robust bootstrap test
test <- test_mediation(BSG2014,
x = "ValueDiversity",
y = "TeamCommitment",
m = "TaskConflict")
# data for dot plot
dot <- fortify(test, method = "dot")
plot_mediation(dot)
# data for density plot
density <- fortify(test, method = "density")
plot_mediation(density)
``` |

robmed documentation built on Nov. 5, 2018, 5:06 p.m.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.