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

gaussian.glmMCMC calls glm with "quasipoisson" family #8

Open
TeoGiane opened this issue May 29, 2024 · 0 comments
Open

gaussian.glmMCMC calls glm with "quasipoisson" family #8

TeoGiane opened this issue May 29, 2024 · 0 comments

Comments

@TeoGiane
Copy link

In CARBayes v 6.1.1, inside gaussian.glmMCMC there is a call to function glm with family = "quasipoisson" instead of "gaussian", as one should expect. As a consequence, calling:

> CARBayes::S.glm(formula=formula, family="gaussian", data = data, burnin=2000, n.sample=10000

outputs the following error:

Setting up the model.
Error in eval(family$initialize) : 
  negative values not allowed for the 'quasiPoisson' family

@Neseemo and I have already fix the typo with the right family. You can find the fixed version here. I did not open a PR on cran/CARBayes because it is said to be "unofficial". Let me know if I have to open it.

@TeoGiane TeoGiane changed the title gaussian.glmMCMC calls glm with 'quasipoisson' family gaussian.glmMCMC calls glm with "quasipoisson" family May 29, 2024
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