mfasiolo / mgcViz

An R package for interactive visualization of GAM models
https://mfasiolo.github.io/mgcViz/
76 stars 9 forks source link

Add l_gridCheckQ1D and l_gridCheckQ2D for quantile regression #34

Closed mfasiolo closed 6 years ago

mfasiolo commented 7 years ago

These would be the equivalent of cqCheck and cqCheck2d in qgam.

mfasiolo commented 7 years ago

Done here 95691cb35cbb5285b5f370427bd9a5d39fd19f2c for 1D checks, but 2D checks would require normalization and/or using transparency to signal that departures from theoretical quantile are significant.

mfasiolo commented 6 years ago

Actually we can normalize using the standard deviation under a binomial model, then significance can be evaluated by looking and the scale z (whether we are in [-2, +2] or not).

mfasiolo commented 6 years ago

Done here aaf327bd3deffee4d6d0abc3d1841e36a656f198 (unless I got something wrong, this was surprisingly simple to do)