| loadItemPool {TestDesign} | R Documentation |
Load item pool
Description
loadItemPool is a data loading function for creating an item_pool object.
loadItemPool can read item parameters and standard errors from a data.frame or a .csv file.
Usage
loadItemPool(ipar, ipar_se = NULL, unique = FALSE)
Arguments
ipar |
item parameters. Can be a |
ipar_se |
(optional) standard errors. Can be a |
unique |
if |
Value
loadItemPool returns an item_pool object.
nithe number of items in the pool.max_catthe maximum number of response categories across all items in the pool.indexthe numeric item index of each item.idthe item ID string of each item.modelthe object class names of each item representing an item model type. Can beitem_1PL,item_2PL,item_3PL,item_PC,item_GPC, oritem_GR.NCATthe number of response categories of each item.parmsa list containing the item object of each item.ipara matrix containing all item parameters.sea matrix containing all item parameter standard errors. The values will be 0 if the argumentipar_sewas not supplied.rawthe original inputdata.frameused to create this object.
See Also
dataset_science, dataset_reading, dataset_fatigue, dataset_bayes for examples.
Examples
## Read from data.frame:
itempool_science <- loadItemPool(itempool_science_data)
## Read from file: write to tempdir() for illustration and clean afterwards
f <- file.path(tempdir(), "itempool_science.csv")
write.csv(itempool_science_data, f, row.names = FALSE)
itempool_science <- loadItemPool(f)
file.remove(f)