plot.lm.simpleboot: Plot method for linear model bootstraps.

View source: R/simpleboot.R

plot.lm.simplebootR Documentation

Plot method for linear model bootstraps.

Description

Plot regression lines with bootstrap standard errors. This method only works for 2-D regression fits.

Usage

## S3 method for class 'lm.simpleboot'
plot(x, add = FALSE, ...)

Arguments

x

An object of class "lm.simpleboot" returned by lm.boot.

add

Switch indicating whether the regression line should be added to the current plot.

...

Additional arguments passed down to plot. Ignored if add = TRUE.

Details

This function plots the data and the original regression line fit along with +/- 2 bootstrap standard errors at locations specified by the new.xpts argument to lm.boot (or on an evenly spaced grid).

Value

Nothing is returned.

Author(s)

Roger D. Peng

Examples

## None right now

simpleboot documentation built on Sept. 11, 2024, 6:21 p.m.