Is there an R package that plots the path diagram (in similar fashion to the figures here) of models fitted with the mediation
package in R automatically?
Asked
Active
Viewed 429 times
2

captain
- 543
- 1
- 3
- 20
-
try packages `semPlot` and `lavaanPlot` – Nad Pat Mar 25 '22 at 18:14
-
They don't work for the mediation package. – captain Mar 27 '22 at 21:04
-
Maybe this post could be helpful (not automatically though): https://stackoverflow.com/questions/46465752/drawing-simple-mediation-diagram-in-r – Coztomate Mar 03 '23 at 17:12
1 Answers
0
The use of psych
package could help!
mediate(Output ~ Independent1 + (Mediator), data =mydata)

srishtigarg
- 1,106
- 10
- 24

Abby
- 11
- 2