ItemEntropy {exametrika}R Documentation

Item Entropy

Description

The item entropy is an indicator of the variability or randomness of the responses. This function is applicable only to binary response data.

The entropy value represents the uncertainty or information content of the response pattern for each item, measured in bits. Maximum entropy (1 bit) occurs when correct and incorrect responses are equally likely (p = 0.5).

Usage

ItemEntropy(U, na = NULL, Z = NULL, w = NULL, ...)

Arguments

U

U is a data matrix of the type matrix or data.frame.

na

na argument specifies the numbers or characters to be treated as missing values.

Z

Z is a missing indicator matrix of the type matrix or data.frame

w

w is item weight vector

...

Internal parameters for maintaining compatibility with the binary data processing system. Not intended for direct use.

Details

The item entropy is calculated as:

e_j = -p_j\log_2p_j-(1-p_j)\log_2(1-p_j)

where p_j is the correct response rate for item j.

The entropy value has the following properties:

Value

A numeric vector of entropy values for each item, measured in bits. Values range from 0 to 1, where:

Note

This function is implemented using a binary data compatibility wrapper and will raise an error if used with polytomous data.

Examples

# using sample dataset
ItemEntropy(J5S10)


[Package exametrika version 1.1.0 Index]