如何使用 IV 修正多项 Logit 中的标准误差
我正在尝试使用工具变量来估计多项 Logit 模型。我没有找到任何预先存在的包,因此我尝试使用两阶段方法进行估计。 首先用 IV 估计第一阶段作为 OLS tsls1<-lm(d~x+z)
然后我用了 d.hat<-fitted.values(tsls1)
这样,我使用了 nnet 中的 multinom 函数。 tsls2<-multinom(y~x+d.hat)
问题是标准误是错误的。我想知道如何纠正它们。或者如果有更简单的方法。
I am trying to estimate a multinomial logit model using an instrumental variable. I didn't find any preexisting package, so I tried to estimate using a two-stage approach.
First estimating the first stage as an OLS with the IVtsls1<-lm(d~x+z)
Then I usedd.hat<-fitted.values(tsls1)
With that, I used multinom function from the nnet.tsls2<-multinom(y~x+d.hat)
The problem is that the standard errors are wrong. I was wondering how I could correct them. Or if there is an easier way.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论