Skip to content

pseudo-residuals for zero-inflated gamma 2 #20

Answered by TheoMichelot
adeline95 asked this question in Q&A
Discussion options

You must be logged in to vote

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

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@adeline95
Comment options

Answer selected by adeline95
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants