OddsRatio: Compute item pairwise odds ratio

View source: R/RcppExports.R

OddsRatioR Documentation

Compute item pairwise odds ratio

Description

Based on a response matrix, calculate the item pairwise odds-ratio according do (n11n00)/(n10n01), where nij is the number of people answering both item i and item j correctly

Usage

OddsRatio(N, J, Yt)

Arguments

N

An int of the sample size

J

An int of the number of items

Yt

An N-by-J response matrix

Value

A J-by-J upper-triangular matrix of the item pairwise odds ratios

Examples


N = dim(Y_real_array)[1]
J = nrow(Q_matrix)
OddsRatio(N,J,Y_real_array[,,1])

hmcdm documentation built on March 31, 2023, 8:07 p.m.