lof {quantchem} | R Documentation |
Performs 'a priori' ANOVA "Lack-of-Fit" tests on fitted calibration models.
lof(obj)
obj |
An object inheriting from 'cal' (fitted by 'lmcal' or 'nlscal') |
This function performs lack-of-fit test on regression residuals. This test assumes, that overall residual error should not be significantly larger than error within groups with the same x (replicates). It is called by 'summary' methods, but also can be called directly by user.
A matrix containing sum of squared residuals, sum of pure error, F-statistic and corresponding p-value.
This test is possible to perform only with minimum 2 replicates of each x value.
Lukasz Komsta
see lmcal
x = rep(1:10,10) y = jitter(x) fit = lmcal(x,y) lof(fit)