Learn R Programming

mirt (version 0.4.0)

personfit: Person fit statistics

Description

personfit calculates the Zh values from Drasgow, Levine and Williams (1985) for unidimensional and multidimensional models. The returned values approximate a standard normal distribution and therefore p-values are also returned. The returned object is a data.frame consisting either of the tabulated data or full data with the Zh and p-values appended to the last columns.

Usage

personfit(x, full.scores = FALSE)

Arguments

x
a computed model object of class ExploratoryClass, ConfirmatoryClass, or MultipleGroupClass
full.scores
if FALSE (default) then a summary table with the Zh and p-values is returned, otherwise the original data matrix is returned with values appended to the rightmost column

References

Drasgow, F., Levine, M. V., & Williams, E. A. (1985). Appropriateness measurement with polychotomous item response models and standardized indices. Journal of Mathematical and Statistical Psychology, 38, 67-86.

See Also

itemfit

Examples

Run this code
#make some data
set.seed(1234)
a <- matrix(rnorm(20),ncol=1)
d <- matrix(rnorm(20),ncol=1)
items <- rep('dich', 20)
data <- simdata(a,d, 2000, items)

x <- mirt(data, 1, SE = FALSE)
tabdatafit <- personfit(x)
head(tabdatafit)

Run the code above in your browser using DataLab