global_OR: Discrepency measure for PPC: Global Odds ratio for two items.

Description Usage Arguments Value References

View source: R/postpred.R

Description

This function calculates the (natural logarithm of the) global odds ratio of a pair of items, which are dichotomized beforehand.

Usage

1
global_OR(x, y, threshold = 3, constant = 0.1)

Arguments

x

Numeric vector containing the responses to the first item.

y

Numeric vector containing the responses to the second item.

threshold

Numeric vector of length 1. The threshold used for dichotomization.

constant

Numeric vector of length 1. A constant added to all four frequencies in order to avoid dividing by zero.

Value

The odds ratio.

References

Li, T., Xie, C., & Jiao, H. (2017). Assessing fit of alternative unidimensional polytomous IRT models using posterior predictive model checking. Psychological Methods, 22, 397-408. doi:10.1037/met0000082

Zhu, X., & Stone, C. A. (2012). Bayesian comparison of alternative graded response models for performance assessment applications. Educational and Psychological Measurement, 72, 774-799. doi:10.1177/0013164411434638


hplieninger/mpt2irt documentation built on Aug. 4, 2018, 10:52 a.m.