# Convert (robust) mediation analysis results into a data frame for plotting

### Description

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.

### Usage

1 2 3 4 5 6 7 8 9 10 | ```
## S3 method for class 'bootTestMediation'
fortify(model, data, method = c("dot", "density"),
parm = c("c", "ab"), ...)
## S3 method for class 'sobelTestMediation'
fortify(model, data, method = c("dot",
"density"), parm = c("c", "ab"), level = 0.95, ...)
## S3 method for class 'list'
fortify(model, data, ...)
``` |

### Arguments

`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. |

`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. |

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

### Value

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

### Author(s)

Andreas Alfons

### See Also

`testMediation`

, `plotMediation`