rqgam_check | R Documentation |
Reproduces the "Resids vs. linear pred" plot from
gam.check
but using randomised quantile residuals, a la
Dunn and Smyth (1996). Check for heteroskedasticity as as usual, looking
for "funnel"-type structures in the points, which is much easier with
randomised quantile residuals than with deviance residuals, especially when
your model uses a count distribution as the response.
rqgam_check(gam.obj, ...)
gam.obj |
a |
... |
arguments passed on to all plotting functions |
Note that this function only works with negative binomial and Tweedie response distributions.
just plots!
Based on code by Natalie Kelly, bugs added by Dave Miller
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.