.predRes | R Documentation |
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)
.predRes(dat, lMod, regTy = "lin", useCol = 1:2)
dat |
matrix or data.frame, main input |
lMod |
linear model, only used to extract coefficients offset & slope |
regTy |
(character) type of regression model |
useCol |
(integer) columns to use |
This function returns a numeric vector of residues (for each line of dat)
searchLinesAtGivenSlope
set.seed(2016); dat1 <- matrix(c(runif(200)+rep(1:10,20)),ncol=10)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.