Learn R Programming

equate (version 2.0-3)

plot.equate: Plotting Equating Results

Description

This function plots equating functions from one or more objects of class equate.

Usage

## S3 method for class 'equate':
plot(..., elist = NULL, add = FALSE, out = "eqs",
  xpoints, ypoints, addident = TRUE, identy, identcol = 1,
  rescale = c(0, 1), xlab = "Total Score", ylab,
  col = rainbow(length(x)), pch, lty = 1, lwd = 1, subset,
  morepars = NULL, addlegend = TRUE, legendtext,
  legendplace = "bottomright")

Arguments

...
one or more equating objects, each containing results for equating the same two test forms.
elist
optional list of additional equatings to be plotted.
add
logical, with default FALSE, specifying whether to create a new plot or add to the current one.
out
character vector specifying the output to be plotted, either equating functions ("eqs"), standard errors ("se"), bias ("bias"), or RMSE ("rmse").
xpoints, ypoints
optional vectors of the same length containing raw scores on forms X and Y, assuming a single group or equivalent groups design.
addident
logical, with default TRUE, for plotting the identity function. The result depends on out.
identy
vector of y coordinates for plotting the identity line. Defaults to the X scale when out = "eqs", otherwise, a horizontal line with intercept 0.
identcol
color used for plotting the identity line.
rescale
intercept and slope, with default 0 and 1, used to rescale all lines before plotting.
xlab, ylab, col, pch, lty, lwd
graphical parameters passed to par, with col, pch, lty, and lwd recycled as necessary.
subset
vector for subsetting the output when multiple equating functions are included in x.
morepars
list of additional graphical parameters, excluding xlab, ylab, col, pch, lty, and lwd.
addlegend
logical, with default TRUE, indicating whether or not a legend should be added.
legendtext
character vector of text to be passed to the legend argument of the legend function, defaulting to a combination of the equating types and methods specified in each equating object.
legendplace
placement of the legend.

Details

Equating functions (out = "eqs") are plotted as lines based on the concordance table for each equating object that is supplied. Standard errors (out = "se") default to bootstrap standard errors, if available, otherwise, analyitical standard errors are plotted. Bias (out = "bias") and RMSE (out = "rmse") are also taken from bootstrapping output.

See Also

equate, plot.bootstrap

Examples

Run this code
x <- freqtab(KBneat$x, scales = list(0:36, 0:12))
y <- freqtab(KBneat$y, scales = list(0:36, 0:12))

set.seed(111213)
eq1 <- equate(x, y, type = "linear", method = "tuck",
  boot = TRUE, reps = 10)
eq2 <- equate(x, y, type = "equip", method = "freq",
  boot = TRUE, smooth = "log", reps = 10,
  showWarnings = FALSE)
eq3 <- equate(x, y, type = "linear", method = "braun",
  boot = TRUE, reps = 10, showWarnings = FALSE)

plot(eq1, eq2, eq3)
plot(eq1, eq2, eq3, out = "se", legendplace = "top",
  addident = FALSE)

Run the code above in your browser using DataLab