View source: R/irt_params_helpers.R
| irt_params_grm | R Documentation |
Creates a list of discrimination (a) and threshold (b) parameters
suitable for passing to irt_design() with model = "GRM".
irt_params_grm(
n_items,
n_categories,
a_dist = "lnorm",
a_mean = 0,
a_sd = 0.25,
b_mean = 0,
b_sd = 1,
seed = NULL
)
n_items |
Positive integer. Number of items. |
n_categories |
Positive integer >= 2. Number of response categories
per item. Produces |
a_dist |
Character string for the discrimination distribution.
Currently only |
a_mean |
Numeric. |
a_sd |
Numeric. |
b_mean |
Numeric. Mean around which thresholds are centered.
Default: |
b_sd |
Numeric. SD of the base threshold distribution. Default: |
seed |
Optional integer seed for reproducibility. |
A named list with elements:
Numeric vector of length n_items.
Numeric matrix with n_items rows and
n_categories - 1 columns. Thresholds are ordered within each row.
irt_params_2pl() for 2PL parameters, irt_design() to use the
generated parameters.
# GRM parameters: 15 items, 5 response categories
params <- irt_params_grm(n_items = 15, n_categories = 5, seed = 42)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.