Abstract
This chapter provides an overview of the open-source, freely available R software and introduces Rasch item response modeling programs in R for unidimensional and multidimensional data which are dichotomously or polytomously scored. An introduction provides instructions for installing the software, writing and executing syntax in the R console, and loading packages. The “eRm” package is utilized for performing the simple Rasch analysis for unidimensional, dichotomous data. The “TAM” package is used for illustrating the Partial Credit Model (Masters, Psychometrika, 47, 149–174, 1982) for unidimensional, polytomous data. The “mirt” package is utilized for performing between-item multidimensional Rasch analysis for dichotomous data.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
References
Adams, R. J, Wu, M. L, Cloney, D., & Wilson, M. R. (2020). ACER ConQuest: Generalised Item Response Modelling Software [Computer software]. Version 5. Australian Council for Educational Research.
Andersen, E. B. (1973). A goodness of fit test for the Rasch model. Psychometrika, 38(1), 123–140. https://doi.org/10.1007/bf02291180
Bock, R. D., & Lieberman, M. (1970). Fitting a response model for n dichotomously scored items. Psychometrika, 35(2), 179–197.
Chalmers, R. P. (2012). mirt: A multidimensional item response theory package for the R environment. Journal of Statistical Software, 48, 1–29.
Cole, K., & Paek, I. (2017). PROC IRT: A SAS procedure for item response theory. Applied Psychological Measurement, 41, 311–320.
Cole, K., & Paek, I. (2022). Using SAS PROC for multidimensional item response theory analysis. Measurement: Interdisciplinary Research and Perspectives, 20, 49–55.
Fischer, G. H., & Molenaar, I. (1995). Rasch models – Foundations, recent developments, and applications. Springer.
Karlheinz, R., & Melich, A. (1992). Euro-Barometer 38.1: Consumer protection and perceptions of science and technology. INRA (Europe).
Linacre, J. M. (2002). What do Infit and Outfit, mean-square and standardized mean? Rasch Measurement Transactions. https://www.rasch.org/rmt/rmt162f.htm
Linacre, J. M. (2022). Winsteps® Rasch measurement computer program [Computer software]. Version 5.2.2. Winsteps.com
Liu, X., & Boone, W. (2006). Introduction to Rasch measurement in science education. In X. Liu & W. J. Boone (Eds.), Applications of Rasch measurement (pp. 1–22). JAM Press.
Mair, P., Hatzinger, R., & Maier, M. J. (2021). eRm: Extended Rasch modeling [Computer software]. Version 1.0-2, https://cran.r-project.org/package=eRm
Masters, G. (1982). A rasch model for partial credit scoring. Psychometrika, 47, 149–174.
Paek, I., & Cole, K. (2020). Using R for item response theory model applications. Routledge.
Paek, I., Liang, X., & Lin, Z. (2021). Regarding item parameter invariance for the Rasch and the 2-paramaeter logistic models: An investigation under finite non-representative sample calibrations. Measurement: Interdisciplinary Research and Perspectives, 19, 39–54.
R Core Team. (2020). R: A language and environment for statistical computing. R Foundation for Statistical Computing. https://www.R-project.org/
Robitzsch, A., Kiefer, T., & Wu, M. (2021). TAM: Test analysis modules. R package [Computer software]. Version 3.7-16. https://CRAN.R-project.org/package=TAM
Thissen, D. (1982). Marginal maximum likelihood estimation for the one-parameter logistic models. Psychometrika, 47, 175–186.
Warm, T. A. (1989). Weighted likelihood estimation of ability in item response theory. Psychometrika, 54, 427–450.
Wilson, M. (2005). Constructing measures: An item response modeling approach. Psychology Press.
Xu, J., & Paek, I. (2016, November). The 3-parameter logistic model parameter recovery with different prior distributions when using flexMIRT and the mirt package in R. The 61st annual meeting of the Florida Educational Research Association (FERA).
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Appendices
Epilogue
The purpose of this chapter is the introduction of R Rasch family modeling via “eRm”, “TAM”, and “mirt”. As such it is not possible to cover wider ranges of functions in these packages. For those who want to pursue learning more about the R item response modeling, authors (Paek & Cole, 2020) have written a detailed book, Using R for Item Response Theory Model Applications, that describes further details of Rasch family modeling in R and multidimensional modeling using R. In addition to learning how to use R Rasch model programs, the study of the Rasch models through a course or article/book reading (e.g., Wilson, 2005) is also strongly recommended.
R Code
1+1 | |
sqrt(4) | |
help(sqrt) | |
?sqrt | |
setwd(“C:/workingdirectory”) | |
read.table(“Rdata1.csv”, sep=“,”, header=TRUE) | |
install.packages(“eRm”) | |
install.packages(“TAM”) | |
install.packages(“mirt”) | |
Unidimensional Rasch Application for Dichotomous Data (using the “eRm” package) | |
library(eRm) | |
data1 <- raschdat3 | |
head(data1) | |
dim(data1) | |
names(data1) | |
mod.rm <- RM(data1) | |
mod.rm$conv | |
-mod.rm$betapar | |
mod.rm$se.beta | |
summary(mod.rm) | |
plotICC(mod.rm) | |
plotICC(mod.rm, 1:3) | |
plotICC(mod.rm, item.subset=c(1,3,5)) | |
dev.off(dev.list()[“RStudioGD”]) | |
p.rm <- person.parameter(mod.rm) | |
p.rm | |
plot(p.rm) | |
plotPImap(mod.rm) | |
install.packages(“WrightMap”) | |
library(WrightMap) | |
WrightMap(as.matrix(p.rm$thetapar$NAgroup1),-mod.rm$betapar) | |
rm.lrt <- LRtest(mod.rm) | |
rm.lrt | |
Waldtest(mod.rm) | |
itemfit(p.rm) | |
detach(“package:eRm”) | |
Unidimensional Rasch Application for Polytomous Data (using “ TAM ” for PCM ) | |
library(TAM) | |
data(data.gpcm) | |
data2 <- data.gpcm | |
head(data2) | |
dim(data2) | |
names(data2) | |
mod.pcm <- tam.mml(data2, irtmodel="PCM") | |
mod.pcm$xsi | |
round(mod.pcm$xsi,3) | |
plot(mod.pcm, items=1, type=“items”, export=FALSE) | |
plot(mod.pcm, items=2, type=“items”, export=FALSE) | |
plot(mod.pcm, items=3, type=“items”, export=FALSE) | |
p.pcm <- mod.pcm$person | |
head(p.pcm) | |
p.pcm.wle <- tam.wle(mod.pcm) | |
p.pcm.theta <- p.pcm.wle$theta | |
head(p.pcm.theta) | |
tam.fit(mod.pcm)$itemfit | |
summary(mod.pcm) | |
detach(“package:TAM”) | |
Multidimensional Rasch Application for Dichotomous Data (using “mirt”) | |
library(mirt) | |
L6 <- expand.table(LSAT6) | |
L7 <- expand.table(LSAT7) | |
set.seed(111) | |
data3 <- cbind(L6[sample(nrow(L6),300),],L7[sample(nrow(L7),300),]) | |
head(data3) | |
dim(data3) | |
names(data3) | |
spec <- “F1 = 1−5 F2 = 6−10 COV = F1*F2” | |
mod.md <- mirt(data3, model=spec, itemtype=“Rasch”, SE=TRUE) | |
mod.md | |
coef(mod.md, simplify=TRUE) | |
coef(mod.md, printSE=TRUE) | |
itemplot(mod.md, 1) | |
itemplot(mod.md, 1, type=“info”) | |
p.md <- fscores(mod.md, method=“EAP”, full.scores=FALSE) | |
p.md <- fscores(mod.md, method=“EAP”, full.scores=TRUE, full.scores.SE=TRUE) | |
head(p.md) | |
M2(mod.md) | |
itemfit(mod.md, fit_stats = “infit”) | |
detach(“package:mirt”) | #3.21 |
Rights and permissions
Copyright information
© 2023 The Author(s), under exclusive license to Springer Nature Switzerland AG
About this chapter
Cite this chapter
Cole, K., Paek, I. (2023). Using R Software for Rasch Model Calibrations. In: Liu, X., Boone, W.J. (eds) Advances in Applications of Rasch Measurement in Science Education. Contemporary Trends and Issues in Science Education, vol 57. Springer, Cham. https://doi.org/10.1007/978-3-031-28776-3_3
Download citation
DOI: https://doi.org/10.1007/978-3-031-28776-3_3
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-031-28775-6
Online ISBN: 978-3-031-28776-3
eBook Packages: EducationEducation (R0)