model_goodness_poly {airt}R Documentation

Computes the goodness of IRT model for all algorithms.

Description

This function computes the goodness of the IRT model for all algorithms using the empirical cumulative distribution function of errors.

Usage

model_goodness_poly(model)

## S3 method for class 'modelgoodnesspoly'
autoplot(object, ...)

Arguments

model

The output from pirtmodel function.

object

For autoplot: The output of the model_goodness_poly function.

...

Other arguments currently ignored.

Value

A list with the following components:

goodnessAUC

The area under the model goodness curve for each algorithm.

mse

The mean squared error.

curves

The x,y coodinates for the model goodness curves for each algorithm.

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_poly(mod)
out
autoplot(out)

[Package airt version 0.2.2 Index]