Can anyone explain why the BP, Breusch-Pagan, test rejects homoscedasticity with such an apparently randomized plot of residuals?


Can anyone explain why the BP, Breusch-Pagan, test rejects homoscedasticity with such an apparently randomized plot of residuals?


You have drawn the wrong scatterplot, I believe.
You should have a scatterplot of the residuals against the fitted values from the model, not "index" which is just the order in which the observations went into the data set
plot(resid(lm(x)))I'm confused because I thought the point of looking at residuals was to ensure that they are evenly scattered about the line Y = 0.
– Info5ek Mar 16 '14 at 22:18plot(m1)inR, where m1 is a linear model; this gives a good default set of graphs – Peter Flom Mar 16 '14 at 22:21plot(model, which=2), which will give you scale-location plot (see my answer here). – gung - Reinstate Monica Mar 16 '14 at 22:58