lmList fits# S3 method for lmList4
plot(x, form, abline, id, idLabels, grid, …)
# S3 method for lmList4.confint
plot(x, y, order, ...)lmList, representing
a list of lm objects with a common model.x can be referenced. In addition, x itself
can be referenced in the formula using the symbol
".". Conditional expressions on the right of a |
operator can be used to define separate panels in a Trellis
display. Default is resid(., type = "pool") ~ fitted(.) ,
corresponding to a plot of the standardized residuals (using a pooled
estimate for the residual standard error) versus fitted values.
idLabels. If given as a one-sided formula, its
right hand side must evaluate to a logical, integer, or character
vector which is used to identify observations in the plot. If
missing, no observations are identified.
id. If given as a
one-sided formula, its right hand side must evaluate to a vector
which is converted to character and used to label the identified
observations. Default is getGroups(x).
xyplot defaults to TRUE, else defaults to
FALSE.
plot method for lmList4 objects is
copied from that for lmList objects; see
plot.lmList for details.fm.plm <- lmList(Reaction ~ Days | Subject, sleepstudy)
## diagnostic plot: standardized residuals vs. fitted
plot(fm.plm,id=0.05)
ci <- confint(fm.plm)
## plot CIs, ordered by slope (coefficient 2)
plot(ci,order=2,ylab="Subject")
Run the code above in your browser using DataLab