【发布时间】:2015-08-29 01:31:40
【问题描述】:
问:可以在 R 中拟合一个有效的零膨胀准泊松模型吗?
我知道零膨胀泊松和零膨胀负二项式都可以与 pscl::zeroinfl() 和 glmmADMB::glmmadmb() 拟合。
但是,在pscl::zeroinfl() 的帮助文件示例中,准泊松是在没有膨胀的情况下拟合的,但在膨胀演示中被省略了:
## data
data("bioChemists", package = "pscl")
## without inflation
## ("art ~ ." is "art ~ fem + mar + kid5 + phd + ment")
fm_pois <- glm( art ~ ., data = bioChemists, family = poisson)
fm_qpois <- glm( art ~ ., data = bioChemists, family = quasipoisson)
fm_nb <- glm.nb(art ~ ., data = bioChemists)
## with simple inflation (no regressors for zero component)
fm_zip <- zeroinfl(art ~ . | 1, data = bioChemists)
fm_zinb <- zeroinfl(art ~ . | 1, data = bioChemists, dist = "negbin")
dist 的唯一选项是 dist = c("poisson", "negbin", "geometric")。
在glmmADMB::glmmadmb() 的帮助文件文档中,负二项式是family="nbinom",而准泊松是family="nbinom1",zeroInflation 的参数定义指出:
zeroInflation: whether a zero-inflated model should be fitted
(only "poisson" and "nbinom" families).
我的理解是准泊松模型具有解释过度分散的优势(尽管是以线性方式);也就是说,如果 P 是 Poisson,Q 是 Quasi-Poisson:
但也许是因为 they lack a proper likelihood 他们不能那么容易实现,这就是为什么它们显然被两个更流行的零膨胀包省略了......
【问题讨论】:
标签: r