Learn R Programming

irtrees (version 1.0.0)

tolong: Convert a wide-format matrix to long format

Description

Convert an IRT response matrix in the wide format to a data frame in the long format. In the wide format each row corresponds to a respondent and each column to an item.

Usage

tolong(mat)

Arguments

mat

an integer IRT response matrix (i.e. a wide format)

Value

a long-format data frame