Hi all,

I am running a between groups SEM with multiple mediators. In one group there is a significant indirect effect. To determine which mediator is contributing to this indirect effect, I was attempting to use the medsem command. I did the following:

1) installed the medsem package using, "scc install medsem, replace"
2) ran my group SEM with the correct level of invariance
3) then ran the command for the first mediator, "medsem, indep(X) med(M) dep(Y)" - where X, M, Y, are all latent variables within the SEM. However when I run the command I get the error, "Y:M not found r(111)".

Any help would be greatly appreciated! I have used this command before, and didn't run into any problems, so am wondering if it something about the group level analysis.