Learn R Programming

wle (version 0.5)

plot.wle.lm: Plots for the Linear Model

Description

The plot.wle.lm function plot a separate graph windows for each roots. In each windows four plots are printed: residuals vs fitted, normal qq plot of the residuals, weighted residuals vs weighted fitted, normal qq plot of the weighted residuals. A summary plot is also printed: in the diagonal, the value of the weigths vs position of the observations for each root; in the upper diagonal residuals vs residuals of two different roots; in the lower diagonal weights vs weights of two different roots.

Usage

plot.wle.lm(object, level.weight=0.5, 
   ask = interactive() && .Device != "postscript")

Arguments

object
an object of class wle.lm
level.weight
value of the weight under which an observations is marked with different color.
ask
logical; if TRUE, the user is asked before each plot, see par(ask=.).

See Also

wle.lm a function for estimating linear models with normal distribution error and normal kernel.

Examples

Run this code
library(wle)
# You can find this data set in:
# Hawkins, D.M., Bradu, D., and Kass, G.V. (1984). 
# Location of several outliers in multiple regression data using
# elemental sets. Technometrics, 26, 197-208.
#
data(artificial)

result <- wle.lm(y.artificial~x.artificial,boot=40,group=6,num.sol=3)

result

plot.wle.lm(result)

Run the code above in your browser using DataLab