SCM

[#5877] Bug in glmmADMB Pearson residuals for beta-binomial and zero-inflated distributions

Date:
2014-08-17 00:49
Priority:
3
State:
Open
Submitted by:
Ulf Koether (woosah)
Assigned to:
Nobody (None)
Hardware:
None
Product:
None
Operating System:
None
Component:
None
Version:
None
Severity:
None
Resolution:
None
URL:
Summary:
Bug in glmmADMB Pearson residuals for beta-binomial and zero-inflated distributions

Detailed description
Wen fitting a beta-binomial model with glmmadmb or a zeroinflated poisson or a zeroinflated negative-binomial model, the pearson residuals are not calculated correctly. For example, when I fit a binomial model that is overdispersed and then switch to the beta-binomial, this results in nearly the same pearson residuals than from the binomial.
The actual parameter estimates seem to be correct, as I fitted the same models with glmmABMB, INLA, JAGS and the pscl-package (zeroinfl) and always got the same estimates. But calcualting the pearson residuals by hand from INLA and JAGS, I got differences to those obtained by resid(modelADMB, type = "pearson").
The models I fitted were very simple, and did not contain any random effects. Find the very ugly code for calculating the residuals from a glmmADMB-object attached.

Comments:

Message  ↓
Date: 2014-08-17 01:02
Sender: Ulf Koether

wrong R-file attached

Attached Files:

Attachments:
Size Name Date By Download
1 KiBresidPearson.glmmadmb.R2014-08-17 00:49woosahresidPearson.glmmadmb.R
1 KiBresidPearson2.glmmadmb.R2014-08-17 01:02woosahresidPearson2.glmmadmb.R

Changes

Field Old Value Date By
File Added3957: residPearson2.glmmadmb.R2014-08-17 01:02woosah
File Added3956: residPearson.glmmadmb.R2014-08-17 00:49woosah
Thanks to:
Vienna University of Economics and Business Powered By FusionForge