Learn R Programming

mirt (version 1.3)

expected.test: Function to calculate expected test score

Description

Given an estimated model compute the expected test score. Returns the expected values in the same form as the data used to estimate the model.

Usage

expected.test(x, Theta, group = NULL)

Arguments

x
an estimated mirt object
Theta
a matrix of latent trait values
group
a number signifying which group the item should be extracted from (applies to 'MultipleGroupClass' objects only)

See Also

extract.item, expected.item

Examples

Run this code
dat <- expand.table(deAyala)
model <- mirt.model('F = 1-5
                    CONSTRAIN = (1-5, a1)')
mod <- mirt(dat, model)

Theta <- matrix(seq(-6,6,.01))
tscore <- expected.test(mod, Theta)
tail(cbind(Theta, tscore))

Run the code above in your browser using DataLab