RT
我想使用GSEM进行一组中介变量的检验,代码为:
其中IV为independent variable, MV为mediate variable, DV为dependent variable, CV为control variable.
随后,为了计算出direct和indirect effect, 按照网上找到的方法准备使用nlcom:
在这里问题出现了,STATA提示:[IV] not found
或提示:equation [MV:] not found
想向前辈们请教,这个问题要怎么解决呢?是由于代码中哪里的问题产生的呢。。。
或许前辈们有更好的计算indirect/direct effect的方法嘛!
Thanks in advance!
(btw. 我怀疑是不是mlogit和linear 组合在GSEM里面的话不能使用nlcom? 可是help里面的确说nlcom可以用于nonlinear和linear的组合。。。抑或是最初GSEM的操作有错误么。。。google了很久还是没有解决,呜呜呜呜抓狂QAQ)