Learn R Programming

autoFC (version 0.2.0.1002)

get_iia: Helper Function for Outputting IIA Characteristics of Each Block

Description

This function prints IIA metrics for select items, given the individual responses for the items.

Usage

get_iia(block, data)

Value

An n by k matrix indicating the four IIA metrics for each item block.

Arguments

block

An n by k integer matrix, where n is the number of item blocks and k is the number of items per block.

data

A p by m numeric matrix with scores of each of the p participants for the m items.

Author

Mengtong Li

Examples

Run this code
  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