rqgam_check: Randomised quantile residuals check plot

View source: R/rqgam_check.R

rqgam_checkR Documentation

Randomised quantile residuals check plot

Description

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.

Usage

rqgam_check(gam.obj, ...)

Arguments

gam.obj

a gam, glm

...

arguments passed on to all plotting functions

Details

Note that this function only works with negative binomial and Tweedie response distributions.

Value

just plots!

Author(s)

Based on code by Natalie Kelly, bugs added by Dave Miller


dill/mgcvUtils documentation built on Oct. 14, 2024, 7:30 p.m.