Learn R Programming

wrMisc (version 1.15.3.1)

.checkLmConfInt: Compare 'dat' to confindence interval of linare model 'lMod' (eg from lm())

Description

This function allows to compare 'dat' to confindence interval of linare model 'lMod' (eg from lm())

Usage

.checkLmConfInt(dat, lMod, level = 0.95)

Value

This function returns a logical vector for each value in 2nd col of 'dat' if INSIDE confid interval

Arguments

dat

matrix or data.frame, main input

lMod

linear model, only used to extract coefficients offset & slope

level

(numeric) alpha threshold for linear model

See Also

searchLinesAtGivenSlope

Examples

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

Run the code above in your browser using DataLab