sgmediation做中介效应检验,发现中介效应每一步检验的y对x回归系数和reghdfe完全不一样,不知道是为什么,求解惑,命令如下:
reghdfe lny lnt1 x2 x3 x5 x6 x7, absorb(ar1 year send1) vce (cluster sendpp)
reghdfe ln需求2 lnt1 x2 x3 x5 x6 x7, absorb(ar1 year send1) vce (cluster sendpp)
reghdfe lny lnt1 ln需求2 x2 x3 x5 x6 x7, absorb(ar1 year send1) vce (cluster sendpp)
xi:sgmediation lny,mv(ln需求2) iv(lnt1) cv(x2 x3 x5 x6 x7 year send1 ar1)