如何使用 IV 修正多项 Logit 中的标准误差

发布于 2025-01-14 18:00:55 字数 274 浏览 6 评论 0原文

我正在尝试使用工具变量来估计多项 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 IV
tsls1<-lm(d~x+z)
Then I used
d.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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文