tolinterval: Tolerance interval for linear regression

Description Usage Arguments Value Examples

View source: R/tolerance.R

Description

Tolerance interval for a Gaussian linear regression model.

Usage

1
tolinterval(fit, xnew, p = 0.9, alpha = 0.05, side = "left-sided")

Arguments

fit

a lm object

xnew

new values of the predictors for which to get the tolerance interval

p

proportion to be covered by the tolerance interval

alpha

significance level

side

either "left-sided", "right-sided" or "two-sided"

Value

The tolerance interval, a vector of length two.

Examples

1
2
3
data(KM31)
fit <- lm(y ~ x1+x2, data = KM31)
tolinterval(fit, xnew=c(1, 88, 9), side="two-sided")

stla/regtolerance documentation built on Aug. 1, 2017, 10:10 a.m.