Learn R Programming

hcc (version 0.54)

PoincarePlot: Poincare plot

Description

Scatter plot check for hidden correlation given an input x and residuals.

Usage

PoincarePlot(x, res)

Arguments

x
an input variable in the regression
res
residuals, the same length as x

Value

plot produced

Details

Plot the ordered lagged one residuals along with a loess smooth to help visualize whether there is a correlation in the residuals.

See Also

hctest

Examples

Run this code
data(trees)
ans<-lm(Volume~Girth+Height, data=trees)
x <- trees$Girth
res <- resid(ans)
PoincarePlot(x, res)

Run the code above in your browser using DataLab