I'm plotting an lme fit object in r and get outlier ids (studyID) displayed on the graph, but I'd like to access these IDs automatically by looking them up in the plot object. I cannot figure out how to do this. I'm doing many analyses, thus it would help to be able to do this automatically rather than actually looking at each graph for the outlier id numbers.
Here's a simplified example of what I'm doing:
fit <- lme(dv ~ studyID + Gender + Group * DOP, random=~1|studyID, cor=corSymm(), na.action="na.omit", method="ML", data=x$data)
require (car)
plotObject <- plot(fit, resid(., type = "p") ~ fitted(.) | Group*DOP, abline = 0, id=.05)
What I want to be able to do is access some attribute of plotObject that stores the id numbers being used to identify outliers in the graph that results from the plot statement.
Thank you.