algo_effectiveness_poly.Rd
This function computes the actual and predicted effectiveness of a given algorithm for different tolerance values.
algo_effectiveness_poly(mod, num = 1)
A fitted mirt
model using the function irtmodel
or R
package mirt
.
The algorithm number
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 <- 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 <- algo_effectiveness_poly(mod$model, num=1) out