outlier_demo: Interactive demonstration of the effect of an outlier on a...

Description Usage Arguments Details Author(s) References

View source: R/outlier_demo.R

Description

This function shows regression lines on user-defined data before and after adding an additional point.

Usage

1
outlier_demo(cex.leg=0.8)

Arguments

cex.leg

A number specifying the magnification of legends inside the plot. Smaller numbers mean smaller font.

Details

This function allows the user to generate data by click on a plot. Once two points are added, the least squares regression line is draw. When an additional point is added, the regression line updates while also showing the line without that point. The effect of outliers on a regression line can easily be illustrated. Pressing the red UNDO button on the plot will allow you to take away recently added points for further exploration.

Note: To end the demo, you MUST click on the red box labeled "End" (or press Escape, which will return an error)

Author(s)

Adam Petrie

References

Introduction to Regression and Modeling


regclass documentation built on March 26, 2020, 8:02 p.m.