简体   繁体   English

如何在多变量中结合逻辑和泊松 model

[英]how to combine logistic and poisson in a multivariate model

How do I write a multivariate zero-inflated model using both the logistic and poisson regression methods in one model?如何在一个 model 中同时使用逻辑回归和泊松回归方法编写多元零膨胀 model?

The results should look something like this:结果应如下所示:在此处输入图像描述

In this article, this is done by PROC NLMIXED in SAS9.3.在本文中,这是由 SAS9.3 中的 PROC NLMIXED 完成的。 How can I do this with a glmmTMB package in r?我如何使用 r 中的 glmmTMB package 执行此操作?

You can use the zeroinfl function from the svyVGAM package.您可以使用zeroinfl package 中的svyVGAM function。

See a vi.nette on its use here:在此处查看有关其使用的 vi.nette:

https://cran.r-project.org/web/packages/svyVGAM/vi.nettes/zeroinfl.html https://cran.r-project.org/web/packages/svyVGAM/vi.nettes/zeroinfl.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM