View source: R/analyseNlsResiduals.R
analyseNlsResiduals | R Documentation |
This function evaluates residuals from 'nls' model objects. It returns a normality plot, residuals vs. fitted, and a lag-plot with a trend line (lm(residual ~ residual -1)) to evaluate autocorrelation. It also provides a Shapiro-Wilk normality test, Levene test for homogeneity of variance, a Runs test for randomness, and a t-test for mean zero.
analyseNlsResiduals(nls)
nls |
an object of class 'nls' |
Residual plots: normality, residuals vs. fitted data, autocorrelation (lagged residuals vs. residuals with fitted linear model).
Residual tests: Mean zero, Shapiro-Wilk normality test, Levene Test for homogeneity of variance, and Run's test for randomness
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.