This package provides a flexible framework for Item Response Theory analyses for dichotomous and polytomous data under a Marginal Maximum Likelihood approach. The fitting algorithms provide valid inferences under Missing At Random missing data mechanisms.
Current version: 0.9-9
Author: Dimitris Rizopoulos d.rizopoulos@erasmusmc.nl
Maintainer: Dimitris Rizopoulos d.rizopoulos@erasmusmc.nl
Depends: R(>= 2.14.0), MASS, msm, mvtnorm, polycor
License: GPL (>= 2)
Look for lack of significance in the pairwise associations between items. IRT posits that items are related through an underlying latent trait. If items are not significantly related to each other, then IRT may not be appropriate.
If you are using numeric variables and not factors in the data argument of grm(), then the levels should start from one not zero and should have consecutive values, e.g., 1, 2, 3, ... . If this is not the case, you may use the following solution in order grm() to work properly:
# say 'dat' is your data.frame; # convert the columns to a factor dat.new <- dat dat.new[] <- lapply(dat, factor) # fit the model to the new data set grm(dat.new)
Try to use the resp.patterns argument of the factor.scores() function, e.g.,
fit <- rasch(LSAT) # factor scores for each sample unit in the original data set factor.scores(fit, resp.patterns = LSAT)
You need to use the constraint argument of rasch(), e.g.,
rasch(LSAT, constraint = cbind(length(LSAT) + 1, 1))
You need to fix the discrimination parameter to 1.702, e.g.,
rasch(LSAT, constraint = cbind(length(LSAT) + 1, 1.702))