Skip to content
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

family=quasipoisson issue #20

Open
davidatkaritane opened this issue Oct 2, 2022 · 0 comments
Open

family=quasipoisson issue #20

davidatkaritane opened this issue Oct 2, 2022 · 0 comments

Comments

@davidatkaritane
Copy link

davidatkaritane commented Oct 2, 2022

When I use family=quasipoisson in bayesglm(...), and then summary(...), it gives an estimate of $\sigma^2$ (the dispersion parameter) that is larger than the square of the estimate of $\sigma$ obtained using sim(...)@sigma, by a factor of $n/(n-p)$.

It appears that the former uses the divisor $n-p$, and the latter uses $n$, where $n$ = # observations and $p$ = # parameters.

This is also seen by comparing the SEs of the regression coefficients given by summary(...), which are larger than the SDs of the posteriors produced by sim(...), by a factor of $\sqrt{(n-p)/n}$.

I assume that a similar issue arises with family=quasibinomial, but I haven't checked that.

Is there a reason for this discrepancy? It certainly leads to worse frequentist coverage for credible intervals based on the posteriors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant