Learn R Programming

mirt (version 0.1-19)

expand.table: Expand summary table of patterns and frequencies

Description

The expand.table function expands a summary table of unique response patterns to a full sized data-set. The response frequencies must be on the rightmost column of the input data.

Usage

expand.table(tabdata)

Arguments

tabdata
An object of class data.frame, matrix, or table with the unique response patterns and the number of frequencies in the rightmost column.

Value

  • Returns a numeric matrix with all the response patterns.

Examples

Run this code
data(LSAT7)
LSAT7full <- expand.table(LSAT7)

Run the code above in your browser using DataLab