These are Rasch model plot methods for item response functions, item inforamtion functions, item error functions, the test response function, the test information function, and the test error function, where each applies to an object of the corresponding class. plot.ifile
summarizes the items within an ifile by plotting each of these functions in succession.
# S3 method for ifile
plot(x, theta = seq(-4, 4, length = 100),
subset = 1:nrow(x), ...)# S3 method for rirf
plot(x, theta = x$theta, add = FALSE,
xlab = expression(theta), ylab = "P(X)", main = "IRF",
lwd = 2, col = "r", ...)
# S3 method for riif
plot(x, theta = x$theta, add = FALSE,
xlab = expression(theta), ylab = "Information", main = "IIF",
lwd = 2, col = "r", ...)
# S3 method for rief
plot(x, theta = x$theta, add = FALSE,
xlab = expression(theta), ylab = "Standard Error",
main = "IEF", lwd = 2, col = "r", ...)
# S3 method for rtrf
plot(x, theta = x$theta, xlab = expression(theta),
ylab = "Total", main = "TRF", lwd = 2, ...)
# S3 method for rtif
plot(x, theta = x$theta, xlab = expression(theta),
ylab = "Information", main = "TIF", lwd = 2, ...)
# S3 method for rtef
plot(x, theta = x$theta, xlab = expression(theta),
ylab = "Standard Error", main = "TEF", lwd = 2, ...)
for plot.ifile
, an object of class “ifile”, otherwise, either an ifile or a vector of item locations
optional vector of theta values over which the functions will be evaluated
an index vector indicating the items to plot, as row numbers or item names if present in the ifile
the x-axis label, as a string, defaulting to expression(theta)
the y-axis label, as a string, with default depending on the method
the plot title, with default depending on the method
line width, as an integer, defaulting to 2
vector of line colors, where the default "r"
indicates a selection from the rainbow. Recycled if necessary
boolean, with default FALSE
, indicating whether or not to add to the current plot
Further arguments passed to plot.default
# NOT RUN {
plot(ifile(-2:2))
# }
Run the code above in your browser using DataLab