powered by
This function prints IIA metrics for select items, given the individual responses for the items.
get_iia(block, data)
An n by k matrix indicating the four IIA metrics for each item block.
An n by k integer matrix, where n is the number of item blocks and k is the number of items per block.
A p by m numeric matrix with scores of each of the p participants for the m items.
Mengtong Li
item_responses <- matrix(sample(seq(1:5), 600*60, replace = TRUE), ncol = 60, byrow = TRUE) get_iia(matrix(seq(1:60), ncol = 3, byrow = TRUE), item_responses)
Run the code above in your browser using DataLab