Creates a list of discrimination (a), difficulty (b), and guessing
(c) parameters suitable for passing to irt_design() with
model = "3PL".
Usage
irt_params_3pl(
n_items,
a_dist = "lnorm",
a_mean = 0,
a_sd = 0.25,
b_dist = "normal",
b_mean = 0,
b_sd = 1,
b_range = c(-2, 2),
c_shape1 = 5,
c_shape2 = 17,
seed = NULL
)Arguments
- n_items
Positive integer. Number of items.
- a_dist
Character string for the discrimination distribution. Currently only
"lnorm"(log-normal) is supported. Default:"lnorm".- a_mean
Numeric.
meanlogfor the log-normal distribution. Default:0.- a_sd
Numeric.
sdlogfor the log-normal distribution. Default:0.25.- b_dist
Character string for the difficulty distribution. One of
"normal"or"even". Default:"normal".- b_mean
Numeric. Mean of the normal distribution for
b. Only used whenb_dist = "normal". Default:0.- b_sd
Numeric. SD of the normal distribution for
b. Only used whenb_dist = "normal". Default:1.- b_range
Numeric vector of length 2. Range for evenly-spaced
bvalues. Only used whenb_dist = "even". Default:c(-2, 2).- c_shape1
Positive numeric. First shape parameter of the Beta distribution used to generate
c. Default:5.- c_shape2
Positive numeric. Second shape parameter. Default:
17. The defaultBeta(5, 17)hasE[c] ~= 0.227, SD ~= 0.087, consistent with typical four-option multiple-choice items.- seed
Optional integer seed for reproducibility. If
NULL(default), the current RNG state is used.