plot.xdistResscale: Illustrate Completeness Test for Regression Model

Description Usage Arguments Value Author(s) References Examples

View source: R/regr.R

Description

Plots mean absolute differences of residuals against mean x-distance of pairs of observations, classified on the basis of their x-distance. The distance is proportional to the Mahalanobis distance in the design space.

Usage

1
2
3
## S3 method for class 'xdistResscale'
plot(x, lwd=2, cex=2, xlab = "distance in x space",
  ylab = "average abs. residual difference", col.aux = "grey30", ...)

Arguments

x

an object of class xdistResscale

lwd, cex

line width and character expansion for plotting

xlab, ylab

label for axes

col.aux

color to be used for auxiliary lines

...

arguments passed to plot.default

Value

none.

Author(s)

Werner A. Stahel, ETH Zurich

References

See package vignette.

Examples

1
2
3
4
5
data(d.blast)
rr <- regr(tremor~distance+charge, data=d.blast)
## an inadequate model!
xdrd <- xdistResdiff(rr)
plot(xdrd)

regr0 documentation built on May 31, 2017, 2:26 a.m.