Hi to all,
I would like to flag potential outliers in a QQ Plot. The check box ‘Display Data Labels’ isn’t very helpful, but at least I could conform that PHX calculates correctly.
My first idea was to split the data and overlay the ‘normal’ ones with the ‘potential oulier’. Unfortunately adding plots are nor possible (and in Box Plots as well)…
Are there any means to extract the x-coordinates? If yes; I could go with an XY Plot. I don’t want to go with R, since not everybody has a Connect license.
Example code in R what I would like to achieve:
StdRes <- c(+0.1751, +0.0538, +1.4321, +0.3130, +0.3558, -1.5904,
-0.9096, -0.9735, -0.7815, +1.2935, -0.3438, -0.4224,
+0.7162, +0.3140, -1.0118, +1.3558, -0.2965, -0.5263,
+1.3903, +0.3488, +2.2361, -0.5805, -0.8683, -1.6799)
QQdata <- qqnorm(StdRes, plot.it=FALSE)
PO <- which(QQdata$y >= 1.96) # potential outliers
plot(QQdata, main="Q-Q Plot", las=1,
xlab="Standard Normal Quantiles",
ylab="Studentized Residuals", cex=1.5, pch=21,
col="blue", bg="lightblue")
qqline(StdRes, col="blue", lwd=2)
points(QQdata$x[[PO]], QQdata$y[[PO]], cex=1.5, pch=21,
col="red", bg="gold")