algo_effectiveness_crm {airt}R Documentation

Computes the actual and predicted effectiveness of a given algorithm.

Description

This function computes the actual and predicted effectiveness of a given algorithm for different tolerance values.

Usage

algo_effectiveness_crm(mod, num = 1)

Arguments

mod

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

num

The algorithm number, for which the goodness of the IRT model is computed.

Value

A list with the following components:

effective

The x,y coodinates for the actual and predicted effectiveness curves for algorithm num.

predictedEff

The area under the predicted effectiveness curve.

actualEff

The area under the actual effectiveness curve.

Examples


set.seed(1)
x1 <- runif(100)
x2 <- runif(100)
x3 <- runif(100)
X <- cbind.data.frame(x1, x2, x3)
max_item <- rep(1,3)
min_item <- rep(0,3)
mod <- cirtmodel(X, max.item=max_item, min.item=min_item)
out <- algo_effectiveness_crm(mod$model, num=1)
out


[Package airt version 0.2.2 Index]