Skip to content
Prev 256615 / 398506 Next

Model checking for gam (mgcv) result

The curve is caused by the zeroes in your data.

raw.residual = response - fitted

so if response=0 then

raw.residual = -fitted.

You get a curve, rather than a straight line, on the fitted vs residual 
plot because the residuals are standardised in a way that also depends 
on the fitted value. (This happens with other GLMs too, not just GAMs)

best,
Simon
On 12/04/11 16:02, Samuel Turgeon wrote: