.predRes: Calculate residues of (2-dim) linear model 'lMod'-prediction of/for 'dat'
Description
This function calculates residues of (2-dim) linear model 'lMod'-prediction of/for 'dat' (using 2nd col of 'useCol' )
(indexing in 'dat', matrix or data.frame with min 2 cols), using 1st col of 'useCol' as 'x'.
It may be used for comparing/identifying data close to regression (eg re-finding data on autoregression line in FT-ICR)
Usage
.predRes(dat, lMod, regTy = "lin", useCol = 1:2)
Value
This function returns a numeric vector of residues (for each line of dat)
Arguments
dat
matrix or data.frame, main input
lMod
linear model, only used to extract coefficients offset & slope