Learn R Programming

FastRCS (version 0.0.9)

plot.FastRCS: Robust Diagnostic Plots For FastRCS

Description

Shows the robust Score distances versus robust Orthogonal distances and their respective cutoffs, for the an object of class FastRCS.

Usage

# S3 method for FastRCS
plot(x,col="black",pch=16,...)

Arguments

x

For the plot() method, a FastRCS object, typically result of FastRCS.

col

A specification for the default plotting color. Vector of values are recycled.

pch

Either an integer specifying a symbol or a single character to be used as the default in plotting points. Note that only integers and single-character strings can be set as a graphics parameter. Vector of values are recycled.

...

Further arguments passed to the plot function.

Details

This function produces the robust standardized, residuals as well as an indicative cut-off (under normal model). This tool is a diagnostic plot for robust regression and can be used used to reveal the outliers.

See Also

FastRCS

Examples

Run this code
set.seed(123)
n<-100
p<-3
x0<-matrix(rnorm(n*p),nc=p)
y0<-rnorm(n)
z<-c(rep(0,30),rep(1,70))
x0[1:30,]<-matrix(rnorm(30*p,5,1/100),nc=p)
y0[1:30]<-rnorm(30,10,1/100)
ns<-FRCSnumStarts(p=p,eps=0.4);
results<-FastRCS(x=x0,y=y0,alpha=0.5,nSamp=ns)
plot(results)

Run the code above in your browser using DataLab