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
{{ message }}
Repository navigation
ENH: quantile residuals, normal scores, uniform scores for GLM and generic #7153
bump,
I just looked at quantile residuals for beta regression article again
should be next on my roadmap in diagnostic
BetaModel is continuous and has get_distribution. So, adding PIT gof plot and quantile residuals should be easy.
Note, Pereira 2017 defines quantile residuals as "normal scores", not uniform.
maybe I should add them after all for discrete distributions
I was reading a bit more of the following article and it sounds better than I thought before
Using shapiro wilk normality test seems to work quite well, at least if sample size or deviation from assumed model is large enough.
We have more specific tests, e.g. ZI or excess dispersion or reset tests, and plots for predictive frequencies.
However the RQR plots might look good for getting a quick overview for possible deviations from the model, by (sorted) observations (given that many users will be more familiar with diagnostics and plots for the linear regression, normal case)
related:
Do we have a plot for (pearson or ...) residuals as function of linpred or some x that includes lowess or spline smoothed residuals?
AFAIR, I only looked a Logit or binary endog data cases, and we have the plots for OLS.
Activity
josef-pkt commentedon Nov 30, 2021
bump,
I just looked at quantile residuals for beta regression article again
should be next on my roadmap in diagnostic
BetaModel is continuous and has get_distribution. So, adding PIT gof plot and quantile residuals should be easy.
Note, Pereira 2017 defines quantile residuals as "normal scores", not uniform.
josef-pkt commentedon Sep 16, 2022
https://stackoverflow.com/questions/73747819/how-to-generate-rqr-for-count-regression-in-python
asking for randomized quantile residuals for Poisson, count models
maybe I should add them after all for discrete distributions
I was reading a bit more of the following article and it sounds better than I thought before
Feng, Cindy, Longhai Li, and Alireza Sadeghpour. 2020. “A Comparison of Residual Diagnosis Tools for Diagnosing Regression Models for Count Data.” BMC Medical Research Methodology 20 (1): 175. https://doi.org/10.1186/s12874-020-01055-2.
Using shapiro wilk normality test seems to work quite well, at least if sample size or deviation from assumed model is large enough.
We have more specific tests, e.g. ZI or excess dispersion or reset tests, and plots for predictive frequencies.
However the RQR plots might look good for getting a quick overview for possible deviations from the model, by (sorted) observations (given that many users will be more familiar with diagnostics and plots for the linear regression, normal case)
related:
Do we have a plot for (pearson or ...) residuals as function of linpred or some x that includes lowess or spline smoothed residuals?
AFAIR, I only looked a Logit or binary endog data cases, and we have the plots for OLS.