How to define a moderated mediation model in R

I am having a moderated mediation model in R that looks like this:


My aim is to use Monte Carlo simulations to plan the sample size for my analysis. I have the effect sizes, squared-R, and errors for the paths. My main concern right now is how to define the regressions of this model for R to understand. I have learnt some basics of defining and running SEM in R, but only for very simple models. Would really appreciate it if you could provide me some leads to work on it.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.