SLIDE 9 Error model: nlsResiduals, test.nlsResiduals
Residuals analysis: validation of the error model
> plot(nlsResiduals(nls)) > test.nlsResiduals(nlsResiduals(nls))
6.5 7.0 7.5 8.0 8.5 −0.10 0.00 0.10
Residuals
Fitted values Residuals
6.5 7.0 7.5 8.0 8.5 −2 −1 1 2
Standardized Residuals
Fitted values Standardized residuals
−0.05 0.00 0.05 0.10 −0.10 0.00 0.10
Autocorrelation
Residuals i Residuals i+1
1 −1.5 −0.5 0.5
Normal Q−Q Plot of Standardized Residuals
Theoretical Quantiles Sample Quantiles
Normality test:
◮ Shapiro-Wilk
Test of independence:
◮ Runs test Florent Baty (KSSG) R package nlstools 10/07/2009 9 / 17