View source: R/generateHelpers.R
makeItemDfs | R Documentation |
takes in a list of item matrices and returns a list of data frames
each representing the parameters given in the matrices. The return object is
suitable to pass into conquestr::makeItemList
to construct a lit of matrices
where each matrix represent one item's set of item parameters. The structure of the
matrix is the same as used in conquestr::simplef
(a matrix of k categories by four (category score, delta dot, tau, discrimination)).
A common use for this function is turn a list of item matrices into a flat data
structure.
makeItemDfs(itemList)
itemList |
a list of item matrices. The structure of each
matrix is the same as used in |
a list.
nItems <- 10
myItemsDeltaDot <- data.frame(
id= seq(nItems),
itemid= NA,
delta = runif (nItems, -4, 1) # nItems items in range -4,1
)
myItemsList <- conquestr::makeItemList(deltaDot = myItemsDeltaDot)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.