Learn R Programming

airt (version 0.2.2)

pirtmodel: Fits a polytomous IRT model.

Description

This function fits a polytomous Item Response Theory (IRT) model using the R package mirt to the algorithm performance data.

Usage

pirtmodel(dat, ncycle = NULL, vpara = TRUE)

Value

A list with the following components:

model

The IRT model using the R package mirt.

anomalous

A binary value for each algorithm. It is set to 1 if an algorithm is anomalous. Otherwise it is set to 0.

consistency

The consistency of each algorithm.

difficulty_limit

The difficulty limits for each algorithm. A higher threshold indicates that the algorithm can tackle harder problems.

Arguments

dat

The performance data in a matrix or dataframe.

ncycle

The number of cycles for mirt. The default is 500.

vpara

It TRUE the verbose parameter for the mirt would be set to true.

References

R. Philip Chalmers (2012). mirt: A Multidimensional Item Response Theory Package for the R Environment. Journal of Statistical Software, 48(6), 1-29. doi:10.18637/jss.v048.i06

Examples

Run this code
set.seed(1)
x1 <- sample(1:5, 100, replace = TRUE)
x2 <- sample(1:5, 100, replace = TRUE)
x3 <- sample(1:5, 100, replace = TRUE)
X <- cbind.data.frame(x1, x2, x3)
mod <- pirtmodel(X)

Run the code above in your browser using DataLab