pseudo-residuals for zero-inflated gamma 2 #20
-
Dear authors, thank you very much for this interesting package that enables to include random effects on observation parameters. To better understand the problem, I tried to run the vignette example (energy prices) with these parameters:
But I got the same error. Therefore I assume it could be something linking to the "zigamma2" distribution. I hope you may be able to help me solving this problem. Thanks for your support and best regards, Adeline |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi Adeline, Thanks for your message, this was caused by a small bug in However, the reason this bug came up specifically in your case is that pseudo-residuals are not implemented for the zero-inflated gamma distribution. If you install the latest version of the package from Github, you will now get a warning message informing you that pseudo-residuals are not available for You could consider other approaches to model checking, e.g., using simulations in Best wishes, |
Beta Was this translation helpful? Give feedback.
Hi Adeline,
Thanks for your message, this was caused by a small bug in
HMM$pseudores()
. I fixed the bug in commit 64aabb4.However, the reason this bug came up specifically in your case is that pseudo-residuals are not implemented for the zero-inflated gamma distribution. If you install the latest version of the package from Github, you will now get a warning message informing you that pseudo-residuals are not available for
"zigamma2"
. This is because it isn't straightforward to deal with observations that are exactly zero when computing pseudo-residuals.You could consider other approaches to model checking, e.g., using simulations in
HMM$check()
.Best wishes,
Théo