-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Typo/ mistake in glmmtmb dokumentation regarding parameterization of nbinom1 #951
Comments
I'll take a look. The source code that computes the log-likelihood is here:
This is a little hard to read because all the computation is done on the log scale. You also need to know that the And, Doing the rest of the algebra suggests that the documentation is actually correct.
It is unfortunate but true that different corners of the statistical world parameterize distributions differently. NB2 is most often parameterized as |
Is there any clarification we can add to the documentation to avoid this confusion? |
At least for me it would be less confusing with different parameters. I am aware of the parameterizations with theta (or ny) and alpha (alpha = 1/theta) as in hilbe 2011. You could use theta for nbinom2 and alpha for nbinom1. As it is right now it implies an indirect relationship between phi_nbinom1 and phi_nbinom2 if i get it correct. |
I'm going to go ahead and close this: while it might be nice to sit down and review all the parameterizations, and make them consistent with each other as far as possible, we will always have inconsistency somewhere (either between the different parameterizations within |
Hallo,
i am quite sure this has to be an mistake: in the dokumentation there is written regarding the nbinom1 parameterization: V=mu*(1+phi).
I think this has to be: V=mu*(1+1/phi). Like it is now it doesnt fit to the nbinom2 parameterization...
King regards,
Sophia Freimüller
The text was updated successfully, but these errors were encountered: