Hi all,
I've got quite a complex model, but when I try to specify specific priors on the regression / mediation components, bsem() seems to always ignore them:
# direct effects
RS.f ~ c1.p2*prior("dnorm(0,1)")*D.m
RS.f ~ c2.p2*prior("dnorm(0,1)")*P.m
RS.f ~ c3.p2*prior("dnorm(0,1)")*L.m
# mediators
PSP.f ~ a1.p2*prior("dnorm(0,1)")*D.m
PSP.f ~ a2.p2*prior("dnorm(0,1)")*P.m
PSP.f ~ a3.p2*prior("dnorm(0,1)")*L.m
RS.m ~ b.p2*prior("dnorm(0,1)")*PSP.f
# indirect effects (a*b)
ab1.p2 := a1.p2*b.p2
ab2.p2 := a2.p2*b.p2
ab3.p2 := a3.p2*b.p2
# total effect
total.mf := c1.p2 + c2.p2 + c3.p2 + ab1.p2 + ab2.p2 + ab3.p2
These result in default priors. Even if I use stan as the target, still get N(0, 10) instead of anything I specify manually. Am I missing something obvious?
Thanks,
Adam