Learn R Programming

conquestr (version 1.4.5)

sysToBMatrixDf: sysToBMatrixDf

Description

Read an R object of class ConQuestSys and create a labelled representation of the B matrix (scoring matrix). This maps item response categories to items and dimensions. Returns long data frame, where items are duplicated if they are in many dimensions.

Usage

sysToBMatrixDf(mySys, applyLabels = TRUE)

Value

A data frame containing R the labelled B matrix.

Arguments

mySys

An R object of class ConQuestSys, returned by the function conquestr::ConQuestSys

applyLabels

A bool indicating whether labels (e.g., dimension labels) should be appended.

Examples

Run this code
myBMatrix <- sysToBMatrixDf(ConQuestSys())
if (FALSE) {
# if you run the above example you will have the B Matrix from the example system file.
str(myBMatrix)
}

Run the code above in your browser using DataLab