This function accepts a matrix of delta parameters and converts them to thresholds (using a threshold of .5). It can also take as input a CQmodel object or a filename of a ConQuest show file.
make.thresholds(item.params, ...)
# S3 method for character
make.thresholds(item.params, design.matrix = "normal",...)
# S3 method for CQmodel
make.thresholds(item.params,item.table = NULL, interactions = NULL
,step.table = NULL, design.matrix = "normal", throld = 0.5, alpha = 1,...)
# S3 method for default
make.thresholds(item.params, design.matrix = "normal"
, make.from = "deltas", theta.interval = c(-10, 10), throld = 0.5, alpha = 1
, c.params = 0,...)
# S3 method for matrix
make.thresholds(item.params, design.matrix = "normal"
, make.from = "deltas", theta.interval = c(-10, 10), throld = 0.5
, alpha = 1, c.params = 0,...)
A matrix of threshold parameters.
The item parameters. Can either be a matrix, a CQmodel object, or a path to a ConQuest show file
Can be "normal" or "ConQuest". Note that for a CQmodel object or ConQuest file, should be normal, NOT ConQuest.
Specifies whether the item.params matrix contains threshold or delta parameters.
If item.params is a CQmodel object or a path to a ConQuest show file, item.table is the name of the items table. Commonly "item" but can be any string representing the name of a table in the ConQuest show file. This identifies what variable will form the rows of the thresholds matrix. If not specified, will be the first variable mentioned in the model equation.
If item.params is a CQmodel object or a path to a ConQuest show file, item.table is the name of the table with the interactions (if present). Commonly "item*step" but can be any string containing "*" that is the name of a table in the ConQuest show file. Should be the product of the item.table variable and the step.table variable (if present). If not specified, will be the product term of the model equation.
If item.params is a CQmodel object or a path to a ConQuest show file, step.table is the name of the steps table (if present). Commonly "step" but can be any string representing the name of a table in the ConQuest show file. This identifies what variable will form the columns of the thresholds matrix. If not specified, will be the second variable mentioned in the model equation.
If item.params is a matrix, theta.interval specifies over what interval to search for the parameters.
The probability level to use for calculating the thresholds.
A vector or single value for the slope parameter or parameters.
A vector or single value for the guessing parameter or parameters.
Additional parameters.
Daniel Coulter Furr, Rebecca Freund, & David Torres Irribarra
make.deltas
itemData
CQmodel
wrightMap
fpath <- system.file("extdata", package="WrightMap")
# Partial credit model
model1 <- CQmodel(file.path(fpath,"ex2a.eap"), file.path(fpath,"ex2a.shw"))
deltas <- make.deltas(model1)
make.thresholds(deltas)
make.thresholds(model1)
Run the code above in your browser using DataLab