PoincarePlot: Poincare plot

Description Usage Arguments Details Value Author(s) See Also Examples

Description

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

Usage

1
PoincarePlot(x, res)

Arguments

x

an input variable in the regression

res

residuals, the same length as x

Details

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

Value

plot produced

Author(s)

Yun Shi and A. I. McLeod

See Also

hctest

Examples

1
2
3
4
5
data(trees)
ans<-lm(Volume~Girth+Height, data=trees)
x <- trees$Girth
res <- resid(ans)
PoincarePlot(x, res)

Example output



hcc documentation built on May 2, 2019, 2:08 a.m.