fefirst 选项用于在工具变量回归中包含固定效应。 通过上述步骤和示例代码,你应该能够避免在使用 xtivreg2 命令时出现 "factor-variable operators not allowed" 的错误,并正确地将分类变量纳入你的回归模型中。
使用下述半参命令的时候发现总是报错,不知道错在哪里,求大佬指正!xtsemipar lnprice hs hw hc ca ba gr ,nonpar(hp) robust xtitle(hp) ytitle(lnprice) ci报错:factor-variable and time-series operators not allow yxzdh 三年级 6 没太用过半参估计的,但是似乎xt这个是面板数据的?stata给出的例子里,...
紧接着,不死心的你可能又继续想用log(y)去代替log_y,貌似可以运行的样子: prodest log(GYZJZBB) method(lp) free log(L) log(L2) proxy log(M) state log(k) valueadded acf id(id) t(year) reps(50) predict lpacf, resid 可这样依然会提示“factor-variable and time-series operators not allowe...
1.Sobel检验中,标准误、Z值和P值都没有(如下图),请问是什么原因?2.在另一个模型中,我想用的自变量是滞后一期值L.X,但是当我输入sgmediation Y, mv(Z) iv( L.X)时候,输出结果提示:factor-variable and time-series operators not allowed(error in option iv( )),这种情况怎么办呢?1.几个小...
Dear Statausers, When I run this command: tsset dtt probit y l.x1 l.x2 mfx I get the following error: factor variables and time-series operators not allowed r(101); What could be the reason for no mfx for lagged variables in time-series? Or am I missing something? Any comments woul...
2.在另一个模型中,我想用的自变量是滞后一期值L.X,但是当我输入sgmediation Y, mv(Z) iv( L.X)时候,输出结果提示:factor-variable and time-series operators not allowed(error in option iv( )),这种情况怎么办呢? 1.几个小时前一个学术群里面刚好在讨论这个中介效应模型,我不想回答这个中介效应检验的问...