dot-predRes: Calculate residues of (2-dim) linear model 'lMod'-prediction...

.predResR Documentation

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)

Arguments

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

Value

This function returns a numeric vector of residues (for each line of dat)

See Also

searchLinesAtGivenSlope

Examples

set.seed(2016); dat1 <- matrix(c(runif(200)+rep(1:10,20)),ncol=10)

wrMisc documentation built on Nov. 17, 2023, 5:09 p.m.