genDichoMatrix {mstR} | R Documentation |
Item bank generation (dichotomous models)
Description
This command generates an item bank from prespecified parent distributions for use with dichotomous IRT models. Subgroups of items can also be specified for content balancing purposes.
Usage
genDichoMatrix(items = 100, model = "4PL", aPrior = c("norm", 1, 0.2),
bPrior = c("norm", 0, 1), cPrior = c("unif", 0, 0.25),
dPrior = c("unif", 0.75, 1), seed = 1)
Arguments
items |
integer: the number of items to include in the generated item bank. |
model |
character: the name of the logistic IRT model, with possible values |
aPrior |
vector of three components, specifying the prior distribution and item parameters for generating the item discrimination levels. See Details. |
bPrior |
vector of three components, specifying the prior distribution and item parameters for generating the item difficulty levels. See Details. |
cPrior |
vector of three components, specifying the prior distribution and item parameters for generating the item lower asymptote levels. See Details. |
dPrior |
vector of three components, specifying the prior distribution and item parameters for generating the item upper asymptote levels. See Details. |
seed |
numeric: the random seed number for the generation of item parameters (default is 1). See |
Details
This function permits to generate an item bank under dichotomous IRT models that is compatible for use in MST simulations.
The number of items to be included in the bank is specified by the items
argument. Corresponding item parameters are drawn from distributions to be specified by arguments aPrior
, bPrior
, cPrior
and dPrior
for respective parameters ,
,
and
(Barton and Lord, 1981). Each of these arguments is of length 3, the first component containing the name of the distribution and the last two components coding the distribution parameters.
Possible distributions are:
the normal distribution
, available for parameters
and
. It is specified by
"norm"
as first argument while the latter two arguments contain the values ofand
respectively.
the log-normal distribution
, available for parameter
only. It is specified by
"lnorm"
as first argument while the latter two arguments contain the values ofand
respectively.
the uniform distribution
, available for all parameters. It is specified by
"unif"
as first argument while the latter two arguments contain the values ofand
respectively. Note that taking
and
equal to a common value, say
, makes all parameters to be equal to
.
the Beta distribution
, available for parameters
and
. It is specified by
"beta"
as first argument while the latter two arguments contain the values ofand
respectively.
Inattention parameters are fixed to 1 if
model
is not "4PL"
; pseudo-guessing parameters are fixed to zero if
model
is either "1PL"
or "2PL"
; and discrimination parameters are
fixed to 1 if
model="1PL"
. The random generation of item parameters can be controlled by the seed
argument.
The random generation of item parameters si being controled by the seed
argument.
The output is a data frame with four arguments, with names a
, b
, c
and d
for respectively the discrimination , the difficulty
, the lower asymptote
and the upper asymptote
parameters.
Value
A data frame with four arguments:
a |
the generated item discrimination parameters. |
b |
the generated item difficulty parameters. |
c |
the generated item lower asymptote parameters. |
d |
the generated item upper asymptote parameters. |
Author(s)
David Magis
Department of Psychology, University of Liege, Belgium
david.magis@uliege.be
References
Barton, M.A., and Lord, F.M. (1981). An upper asymptote for the three-parameter logistic item-response model. Research Bulletin 81-20. Princeton, NJ: Educational Testing Service.
Magis, D., and Raiche, G. (2012). Random Generation of Response Patterns under Computerized Adaptive Testing with the R Package catR. Journal of Statistical Software, 48 (8), 1-31. URL http://www.jstatsoft.org/v48/i08/
Examples
# Item bank generation with 500 items
genDichoMatrix(items = 500)
# Item bank generation with 100 items, 2PL model and log-normal distribution with
# parameters (0, 0.1225) for discriminations
genDichoMatrix(items = 100, model = "2PL", aPrior = c("lnorm", 0, 0.1225))
# A completely identical method as for previous example
genDichoMatrix(items = 100, aPrior = c("lnorm", 0, 0.1225),
cPrior = c("unif", 0, 0), dPrior = c("unif", 1, 1))