You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We were testing Biodose Tools on overdispersed data and a linear model, choosing quasi-Poisson as the model family. See snippet below to reproduce the count data calculations.
The data is clearly overdispersed, and such a quasi-Poisson model should be used ("Automatic" should give the same results, as it runs the same routine as quasi-Poisson).
However, the glm model dispersion is lower than 1, and thus the Poisson family is used instead. Below we can see a snippet to replicate the calculations done when running biodosetools::get_fit_glm_method():
My impression is that using the weights parameter "corrects" the overdispersion (not using it reports a dispersion of 1.140056), and therefore the app will never choose a quasi-Poisson model.
Note that to run the count_data snippet, {biodosetools} needs to installed from the master branch (at least 273ac40), as the function calculate_aberr_var() was not being exported to the namespace.
Bug report/feedback
We were testing Biodose Tools on overdispersed data and a linear model, choosing quasi-Poisson as the model family. See snippet below to reproduce the count data calculations.
The data is clearly overdispersed, and such a quasi-Poisson model should be used ("Automatic" should give the same results, as it runs the same routine as quasi-Poisson).
However, the
glm
model dispersion is lower than 1, and thus the Poisson family is used instead. Below we can see a snippet to replicate the calculations done when runningbiodosetools::get_fit_glm_method()
:My impression is that using the
weights
parameter "corrects" the overdispersion (not using it reports a dispersion of1.140056
), and therefore the app will never choose a quasi-Poisson model.Probably related to #14.
The text was updated successfully, but these errors were encountered: