I would like to analyze the data from the experiment using the intermediary analysis in R. However, the experimental design is a full factorial design in three variables (two continuous, one categorical), and I can not find an explanation of how to implement mediation in R with several procedures. I read the documentation in the mediation package, but they don't seem to provide ways to extend X beyond a single call. Similarly, I cannot find a way to do this in MBESS or lavaan .
I found a very recent article discussing the statistical theory / approaches needed to implement multiple treatments in mediation analysis, Hayes and Preacher 2014 ( http://quantpsy.org/pubs/hayes_preacher_2014.pdf ), but unfortunately they are give only codes for the implementation of their approach in Mplus, SPSS and SAS. I need to implement this in the next couple of days for a presentation, so I donβt have time to speed up in another program, to do this, I need to implement it in R.
Does anyone know if there is an implementation in R that I missed? Or if there is a way to implement this approach outside the package?
(I understand that I can transform my full factorial design into a single processing, considering each combination of 3 factors as a level, but such an analysis would not help.)
source share