| plot.GPvam | R Documentation |
Draw caterpillar plots of teacher effects with normal-approximation intervals, normal Q-Q plots of conditional residuals, and residuals against fitted values.
## S3 method for class 'GPvam'
plot(x, ..., alpha = 0.1, ask = interactive())
x |
An object of class |
... |
Additional graphical arguments passed to the plotting functions. |
alpha |
Significance level for the caterpillar intervals, a finite
number strictly between zero and one. The default |
ask |
Logical; ask before advancing to the next plot. Defaults to
|
Caterpillar intervals use the teacher prediction-error standard deviations
returned by GPvam, treating estimated covariance parameters as
known. They do not include an adjustment for estimation of the covariance
parameters. Separate caterpillar plots are drawn for each available
originating-year/effect-year pair using the original year labels.
Earlier versions of GPvam used caterpillar code adapted from
plotCI in package gplots. Its original version was posted
to R-help by Bill Venables
on September 20, 1997; an enhanced version was posted by Ben Bolker on
April 16, 2001. Gregory R. Warnes modified and extended that version, and
changes suggested by Martin Maechler were integrated on July 29, 2004.
The input object x, invisibly. Plots are drawn on the active
graphics device.
Andrew Karl akarl@asu.edu, Yan Yang and Sharon Lohr. Caterpillar plotting contributors are listed in ‘Details’.
GPvam, summary.GPvam
data(vam_data)
result <- GPvam(vam_data, persistence = "CP", verbose = FALSE)
plot(result, alpha = 0.05, ask = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.