Learn R Programming

catSurv (version 1.3.0)

posteriorKL: Expected Kullback-Leibler Information, Weighted by the Prior

Description

Calculates the expected Kullback-Leibler information, weighted by likelihood and prior beliefs, for a specified item.

Usage

posteriorKL(catObj, item)

Arguments

catObj

An object of class Cat

item

An integer indicating the index of the question item

Value

The function posteriorKL returns a numeric indicating the expected Kullback-Leibler information weighted by the likelihood for the specified item, given the current answer profile and ability parameter estimate.

Details

The function posteriorKL calculates the expected Kullback-Leibler information for question item, where the proposed values of the true ability parameter are weighted by the prior.

This function involves integration. See Note for more information.

See Also

expectedKL, likelihoodKL, selectItem

Examples

Run this code
# NOT RUN {
## Loading ltm Cat object
data(ltm_cat)

## Store example answers
setAnswers(ltm_cat) <- c(1,0,1,0,1, rep(NA, 35))

## Estimate EPV for different unasked items
posteriorKL(ltm_cat, item = 10)
posteriorKL(ltm_cat, item = 20)
posteriorKL(ltm_cat, item = 30)


# }

Run the code above in your browser using DataLab