model_goodness_for_algo_poly {airt}R Documentation

Computes the goodness of the IRT model fit for a given algorithm.

Description

This function computes the goodness of the IRT model fit for a given algorithm using the empirical cumulative distribution function of errors.

Usage

model_goodness_for_algo_poly(mod, num = 1)

Arguments

mod

A fitted mirt model using the function irtmodel or R package mirt.

num

The algorithm number

Value

A list with the following components:

xy

The x values denote the error tolerances. The y values denotes its empirical cumulative distribution function.

auc

The area under the CDF.

mse

The mean squared error.

Examples

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)
out <- model_goodness_for_algo_poly(mod$model, num=1)
out


[Package airt version 0.2.2 Index]