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.