Skip to contents

Creates a data frame of item parameters.

Usage

item_gen(
  b_bounds,
  a_bounds = NULL,
  c_bounds = NULL,
  thresholds = 1,
  n_1pl = NULL,
  n_2pl = NULL,
  n_3pl = NULL
)

Arguments

b_bounds

a vector containing the bounds of the the uniform distribution for sampling the difficulty parameters.

a_bounds

a vector containing the bounds of the the uniform distribution for sampling the discrimination parameters.

c_bounds

a vector containing the bounds of the the uniform distribution for sampling the guessing parameters.

thresholds

if numeric, number of thresholds for 1- and/or 2-parameter dichotomous items, if vector, each element is the number of thresholds corresponding to the vector of n_1pl and/or n_2pl.

n_1pl

if integer, number of 1-parameter dichotomous items, if vector, each element is the number of partial credit items corresponding to thresholds number.

n_2pl,

if integer, number of 2-parameter dichotomous items, if vector, each element is the number of generalized partial credit items corresponding to thresholds number.

n_3pl

integer, number of 3-parameter items.

Details

The data frame includes two variables p and k which indicate the number of parameters and the number of thresholds, respectively

Examples

item_gen(
  b_bounds = c(-2, 2), a_bounds = c(.75, 1.25),
  thresholds = c(1, 2, 3), n_1pl = c(5, 5, 5), n_2pl = c(0, 0, 5)
)
#>    item     b    d1    d2   d3    a c k p
#> 1     1 -1.42  0.00  0.00 0.00 1.00 0 1 1
#> 2     2  1.43  0.00  0.00 0.00 1.00 0 1 1
#> 3     3 -1.00  0.00  0.00 0.00 1.00 0 1 1
#> 4     4  1.93  0.00  0.00 0.00 1.00 0 1 1
#> 5     5  1.51  0.00  0.00 0.00 1.00 0 1 1
#> 6     6 -0.31 -0.18  0.18 0.00 1.00 0 2 1
#> 7     7  0.36 -0.06  0.06 0.00 1.00 0 2 1
#> 8     8 -1.06 -0.43  0.43 0.00 1.00 0 2 1
#> 9     9 -1.30 -0.65  0.65 0.00 1.00 0 2 1
#> 10   10  0.48 -0.67  0.67 0.00 1.00 0 2 1
#> 11   11  1.27 -1.18 -0.05 1.23 1.00 0 3 1
#> 12   12 -1.19 -0.20  0.04 0.16 1.00 0 3 1
#> 13   13  0.43 -0.69 -0.27 0.96 1.00 0 3 1
#> 14   14  0.61 -0.48 -0.30 0.77 1.00 0 3 1
#> 15   15  0.40 -0.79  0.25 0.53 1.00 0 3 1
#> 16   16 -0.42 -0.39 -0.23 0.62 1.14 0 3 2
#> 17   17  0.94 -0.61 -0.20 0.81 0.81 0 3 2
#> 18   18  1.02 -1.16  0.01 1.14 0.90 0 3 2
#> 19   19 -0.15 -0.60 -0.25 0.85 1.23 0 3 2
#> 20   20 -0.69 -0.77  0.29 0.48 1.11 0 3 2
item_gen(
  b_bounds = c(-2, 2), a_bounds = c(.75, 1.25), c_bounds = c(0, .25),
  n_2pl = 5, n_3pl = 5
)
#>    item     b    a    c k p
#> 1     1  1.11 1.18 0.00 1 2
#> 2     2  1.08 1.21 0.00 1 2
#> 3     3  0.45 1.07 0.00 1 2
#> 4     4  0.57 1.22 0.00 1 2
#> 5     5  0.47 0.94 0.00 1 2
#> 6     6  1.32 0.83 0.08 1 3
#> 7     7 -0.43 1.09 0.06 1 3
#> 8     8 -1.14 1.14 0.00 1 3
#> 9     9  1.76 1.05 0.05 1 3
#> 10   10  0.57 0.86 0.09 1 3