jthaman / ciTools

An R Package for Quick Uncertainty Intervals
GNU General Public License v3.0
106 stars 9 forks source link

Is it possible to apply to the quasibinomial() glm family? #58

Open marcoaurelioguerrap opened 2 years ago

marcoaurelioguerrap commented 2 years ago

I saw the add_quatile() function briefly. Maybe I'm wrong but the quantiles are done by simulation. Is it possible to do for the quasibinomial() family? I could make a pull request and someone analyses it.

jthaman commented 2 years ago

It is somewhat improper that ciTools even provides PIs and quantiles for QuasiPoisson models. We rely on a coincidence that QP models can be embedded in a likelihood framework to calculate the distributional properties. I forget the source now, but there are some ideas on CV: https://stats.stackexchange.com/a/157651

I'm not sure if the same can be done with QuasiBinomial models.

In retrospect, we probably should return error codes if the user requests anything other than confidence intervals from quasi-likelihood models.

-John