Learn R Programming

mirt (version 1.1)

residuals-method: Compute model residuals

Description

residuals(object, restype = 'LD', digits = 3, df.p = FALSE, full.scores = FALSE, printvalue = NULL, verbose = TRUE, ...)

Arguments

object
an object of class ExploratoryClass, ConfirmatoryClass or MultipleGroupClass
restype
type of residuals to be displayed. Can be either 'LD' for a local dependence matrix (Chen & Thissen, 1997) or 'exp' for the expected values for the frequencies of every response pattern
digits
number of significant digits to be rounded
df.p
logical; print the degrees of freedom and p-values?
full.scores
logical; compute relavent statistics for each subject in the original data?
printvalue
a numeric value to be specified when using the res='exp' option. Only prints patterns that have standardized residuals greater than abs(printvalue). The default (NULL) prints all response patterns
verbose
logical; allow information to be printed to the console?
...
additional arguments to be passed

Examples

Run this code
x <- mirt(Science, 1)
residuals(x)
residuals(x, restype = 'exp')

Run the code above in your browser using DataLab