Learn R Programming

exametrika (version 1.6.0)

ItemOdds: Item Odds

Description

Item Odds are defined as the ratio of Correct Response Rate to Incorrect Response Rate: $$O_j = \frac{p_j}{1-p_j}$$ where \(p_j\) is the correct response rate for item j. This function is applicable only to binary response data.

The odds value represents how many times more likely a correct response is compared to an incorrect response. For example, an odds of 2 means students are twice as likely to answer correctly as incorrectly.

Usage

ItemOdds(U, na = NULL, Z = NULL, w = NULL)

# S3 method for default ItemOdds(U, na = NULL, Z = NULL, w = NULL)

# S3 method for binary ItemOdds(U, na = NULL, Z = NULL, w = NULL)

Value

A numeric vector of odds values for each item. Values range from 0 to infinity, where:

  • odds > 1: correct response more likely than incorrect

  • odds = 1: equally likely

  • odds < 1: incorrect response more likely than correct

Arguments

U

Either an object of class "exametrika" or raw data. When raw data is given, it is converted to the exametrika class with the dataFormat function.

na

Values to be treated as missing values.

Z

Missing indicator matrix of type matrix or data.frame. Values of 1 indicate observed responses, while 0 indicates missing data.

w

Item weight vector specifying the relative importance of each item.

Examples

Run this code
# using sample dataset
ItemOdds(J5S10)

Run the code above in your browser using DataLab