具有随机效应的多项 Logit 不会使用 mbgit 收敛

发布于 2025-01-18 09:02:11 字数 552 浏览 0 评论 0原文

我想估计随机效应 (RE) 多项 Logit 模型。

我一直在应用 mclogit 包 中的 mblogit。然而,一旦我将 RE 引入模型中,它就无法收敛。 有解决方法吗?

例如,我尝试调整mbgit的拟合过程并增加最大迭代次数(maxit),但没有成功正确编写控制函数的语法。这是正确的方法吗?如果是这样,您能否建议我如何将其实施到我的模型中,到目前为止,该模型如下所示:

meta.mblogit <- mblogit(Migration  ~ ClimateHazard4 , weights = logNsquare,
data = meta.df,   subset= Panel==1,  random = ~1|StudyID,
)

在这里,两个变量(迁移和气候危险4)都是因子变量。

或者您是否可以推荐我另一种方法来估计 RE 多项式 logit? 非常感谢!

I would like to estimate a random effects (RE) multinomial logit model.

I have been applying mblogit from the mclogit package. However, once I introduce RE into my model, it fails to converge.
Is there a workaround this?

For instance, I tried to adjust the fitting process of mblogit and increase the maximal number of iterations (maxit), but did not succeed to correctly write the syntax for the control function. Would this be the right approach? And if so, could you advise me how to implement it into my model which so far looks as follows:

meta.mblogit <- mblogit(Migration  ~ ClimateHazard4 , weights = logNsquare,
data = meta.df,   subset= Panel==1,  random = ~1|StudyID,
)

Here, both variables (Migration and ClimateHazard4) are factor variables.

Or is there an alternative approach you could recommend me for an estimation of RE multinomial logit?
Thank you very much!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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