plot.lmInt: Plot confidence and prediction intervals for regression.

plot.lmIntR Documentation

Plot confidence and prediction intervals for regression.

Description

'plot.lmInt' adds confidence and/or prediction intervals to an existing plot depicting a simple univariate linear model. The intervals are computed using the 'lmInt' function.

Usage

## S3 method for class 'lmInt'
plot(x, xx = colnames(x)[1], 
    fit = FALSE, cia = FALSE, 
    cif = FALSE, pi = FALSE, 
    band = FALSE, ...)

Arguments

x

an object of class 'lmInt'

xx

the name of dependent variable to plot against

fit

plot the fitted regression line?

cia

plot confidence intervals around the regression line? (See 'lmInt' for explanation.)

cif

plot confidence intervals for the regression line? (See 'lmInt' for explanation.)

pi

plot prediction intervals? (See 'lmInt' for explanation.)

band

draw polygonal confidence bands instead of simple lines?

...

additional arguments to be passed to the 'lines' function used to plot the lines

Author(s)

Tomas Sieger

See Also

'lmInt'

Examples

# see lmInt

tsieger/tsiMisc documentation built on Oct. 10, 2023, 10:24 p.m.