sysToBMatrixDf {conquestr}R Documentation

sysToBMatrixDf

Description

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

Usage

sysToBMatrixDf(mySys, applyLabels = TRUE)

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.

Value

A data frame containing R the labelled B matrix.

Examples

myBMatrix<- sysToBMatrixDf(ConQuestSys())
## Not run: 
# if you run the above example you will have the B Matrix from the example system file.
str(myBMatrix)

## End(Not run)

[Package conquestr version 0.9.96 Index]