Hi,
I am conducting a path analysis with 4 variables. The schematic can be seen below:

I'm interested in both the direct and indirect effects. I created the following syntax for the effects of PAG on AUDIT
active.model<-'
PSP ~ p1*PAG + mOFC
AUDIT ~ p2*PAG + p3*mOFC + p5*PSP
total := p1 + p2*p5 + p3*p5
indirect := p2*p5 + p3*p5
'
active.res<-sem(active.model, data=Data)
summary(active.res)
I could do the same thing for the effects of mOFC but I don't know how to incorporate both PAG and mOFC in the same model. I tried:
active.model<-'
PSP ~ p1*PAG + mOFC
PSP ~ p4*mOFC + PAG
AUDIT ~ p2*PAG + p3*mOFC + p5*PSP
total := p1 + p4 + p2*p5 + p3*p5
indirect := p2*p5 + p3*p5
'
active.res<-sem(active.model, data=Data)
summary(active.res)
This, rather obviously, produces an error of duplicate model element for PSP. Could anyone help? Thank you so much!