In R, gls object contains "residuals" and the summary(gls) object contains residuals. Both differ from each other. Which is the one I should use for checking the normality?
> shapiro.test(summary(m)$residuals)
Shapiro-Wilk normality test
data: summary(m)$residuals
W = 0.92493, p-value = 0.5622
> shapiro.test(m$residuals)
Shapiro-Wilk normality test
data: m$residuals
W = 0.92671, p-value = 0.000242
Let's make it model agnostic.
EDIT: just answered. The residuals from the model are just 5 quantiles of the raw residuals.