Skip to main content

Using R Software for Rasch Model Calibrations

  • Chapter
  • First Online:
Advances in Applications of Rasch Measurement in Science Education

Part of the book series: Contemporary Trends and Issues in Science Education ((CTISE,volume 57))

  • 293 Accesses

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.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 139.00
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Hardcover Book
USD 179.99
Price excludes VAT (USA)
  • Durable hardcover edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

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.

    Google Scholar 

  • Andersen, E. B. (1973). A goodness of fit test for the Rasch model. Psychometrika, 38(1), 123–140. https://doi.org/10.1007/bf02291180

    Article  Google Scholar 

  • Bock, R. D., & Lieberman, M. (1970). Fitting a response model for n dichotomously scored items. Psychometrika, 35(2), 179–197.

    Article  Google Scholar 

  • Chalmers, R. P. (2012). mirt: A multidimensional item response theory package for the R environment. Journal of Statistical Software, 48, 1–29.

    Article  Google Scholar 

  • Cole, K., & Paek, I. (2017). PROC IRT: A SAS procedure for item response theory. Applied Psychological Measurement, 41, 311–320.

    Article  Google Scholar 

  • Cole, K., & Paek, I. (2022). Using SAS PROC for multidimensional item response theory analysis. Measurement: Interdisciplinary Research and Perspectives, 20, 49–55.

    Google Scholar 

  • Fischer, G. H., & Molenaar, I. (1995). Rasch models – Foundations, recent developments, and applications. Springer.

    Google Scholar 

  • Karlheinz, R., & Melich, A. (1992). Euro-Barometer 38.1: Consumer protection and perceptions of science and technology. INRA (Europe).

    Google Scholar 

  • 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.

    Google Scholar 

  • 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.

    Article  Google Scholar 

  • Paek, I., & Cole, K. (2020). Using R for item response theory model applications. Routledge.

    Google Scholar 

  • 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.

    Google Scholar 

  • 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.

    Article  Google Scholar 

  • Warm, T. A. (1989). Weighted likelihood estimation of ability in item response theory. Psychometrika, 54, 427–450.

    Article  Google Scholar 

  • Wilson, M. (2005). Constructing measures: An item response modeling approach. Psychology Press.

    Google Scholar 

  • 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).

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Ki Cole .

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

#0.1

sqrt(4)

#0.2

help(sqrt)

#0.3

?sqrt

#0.4

setwd(“C:/workingdirectory”)

#0.5

read.table(“Rdata1.csv”, sep=“,”, header=TRUE)

#0.6

install.packages(“eRm”)

#0.7

install.packages(“TAM”)

#0.8

install.packages(“mirt”)

#0.9

Unidimensional Rasch Application for Dichotomous Data (using the “eRm” package)

library(eRm)

#1.1

data1 <- raschdat3

#1.2

head(data1)

#1.3

dim(data1)

#1.4

names(data1)

#1.5

mod.rm <- RM(data1)

#1.6

mod.rm$conv

#1.7

-mod.rm$betapar

#1.8

mod.rm$se.beta

#1.9

summary(mod.rm)

#1.10

plotICC(mod.rm)

#1.11

plotICC(mod.rm, 1:3)

#1.12

plotICC(mod.rm, item.subset=c(1,3,5))

#1.13

dev.off(dev.list()[“RStudioGD”])

#1.14

p.rm <- person.parameter(mod.rm)

#1.15

p.rm

#1.16

plot(p.rm)

#1.17

plotPImap(mod.rm)

#1.18

install.packages(“WrightMap”)

#1.19

library(WrightMap)

#1.20

WrightMap(as.matrix(p.rm$thetapar$NAgroup1),-mod.rm$betapar)

#1.21

rm.lrt <- LRtest(mod.rm)

#1.22

rm.lrt

#1.23

Waldtest(mod.rm)

#1.24

itemfit(p.rm)

#1.25

detach(“package:eRm”)

#1.26

Unidimensional Rasch Application for Polytomous Data (using “ TAM ” for PCM )

library(TAM)

#2.1

data(data.gpcm)

#2.2

data2 <- data.gpcm

#2.3

head(data2)

#2.4

dim(data2)

#2.5

names(data2)

#2.6

mod.pcm <- tam.mml(data2, irtmodel="PCM")

#2.7

mod.pcm$xsi

#2.8

round(mod.pcm$xsi,3)

#2.9

plot(mod.pcm, items=1, type=“items”, export=FALSE)

#2.10

plot(mod.pcm, items=2, type=“items”, export=FALSE)

#2.11

plot(mod.pcm, items=3, type=“items”, export=FALSE)

#2.12

p.pcm <- mod.pcm$person

#2.13

head(p.pcm)

#2.14

p.pcm.wle <- tam.wle(mod.pcm)

#2.15

p.pcm.theta <- p.pcm.wle$theta

#2.16

head(p.pcm.theta)

#2.17

tam.fit(mod.pcm)$itemfit

#2.18

summary(mod.pcm)

#2.19

detach(“package:TAM”)

#2.20

Multidimensional Rasch Application for Dichotomous Data (using “mirt”)

library(mirt)

#3.1

L6 <- expand.table(LSAT6)

#3.2

L7 <- expand.table(LSAT7)

#3.3

set.seed(111)

#3.4

data3 <- cbind(L6[sample(nrow(L6),300),],L7[sample(nrow(L7),300),])

#3.5

head(data3)

#3.6

dim(data3)

#3.7

names(data3)

#3.8

spec <- “F1 = 1−5

 F2 = 6−10

 COV = F1*F2”

#3.9

mod.md <- mirt(data3, model=spec, itemtype=“Rasch”, SE=TRUE)

#3.10

mod.md

#3.11

coef(mod.md, simplify=TRUE)

#3.12

coef(mod.md, printSE=TRUE)

#3.13

itemplot(mod.md, 1)

#3.14

itemplot(mod.md, 1, type=“info”)

#3.15

p.md <- fscores(mod.md, method=“EAP”, full.scores=FALSE)

#3.16

p.md <- fscores(mod.md, method=“EAP”, full.scores=TRUE, full.scores.SE=TRUE)

#3.17

head(p.md)

#3.18

M2(mod.md)

#3.19

itemfit(mod.md, fit_stats = “infit”)

#3.20

detach(“package:mirt”)

#3.21

Rights and permissions

Reprints and permissions

Copyright information

© 2023 The Author(s), under exclusive license to Springer Nature Switzerland AG

About this chapter

Check for updates. Verify currency and authenticity via CrossMark

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)

Publish with us

Policies and ethics