SiegelsEx | R Documentation |
A small counterexample data set devised by Andrew Siegel.
Six (out of nine) data points lie on the line y = 0
such that
some robust regression estimators exhibit the “exact fit”
property.
data(SiegelsEx, package="robustbase")
A data frame with 9 observations on the following 2 variables.
x
a numeric vector
y
a numeric vector
Emerson and Hoaglin (1983, p.139)
Peter J. Rousseeuw and Annick M. Leroy (1987) Robust Regression and Outlier Detection Wiley, p.60–61
data(SiegelsEx)
plot(SiegelsEx, main = "Siegel's example for 'exact fit'")
abline( lm(y ~ x, data = SiegelsEx))
abline(MASS::lqs(y ~ x, data = SiegelsEx, method = "lms"), col = 2)
legend("topright", leg = c("lm", "LMS"), col=1:2, lwd=1, inset = 1/20)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.