Learn R Programming

hmcdm (version 2.1.2)

OddsRatio: 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)

Value

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

Arguments

N

An int of the sample size

J

An int of the number of items

Yt

An N-by-J response matrix

Examples

Run this code
# \donttest{
N = dim(Y_real_array)[1]
J = nrow(Q_matrix)
OddsRatio(N,J,Y_real_array[,,1])# }

Run the code above in your browser using DataLab