| irt_design | R Documentation |
Define the data-generating model for an IRT simulation study. This captures decisions 1–3 from the Schroeders & Gnambs (2025) framework: dimensionality, item parameters, and item type.
irt_design(model, n_items, item_params, theta_dist = "normal", n_factors = 1L)
model |
Character string specifying the IRT model. One of
|
n_items |
Positive integer. Number of items in the instrument. |
item_params |
A named list of item parameters. Contents depend on
|
theta_dist |
Either a character string ( |
n_factors |
Positive integer specifying the number of latent factors.
Defaults to |
An S3 object of class irt_design (a named list) with elements
model, n_items, item_params, theta_dist, and n_factors.
irt_study() to add study conditions, irt_params_2pl() and
irt_params_grm() to generate item parameters.
# 1PL (Rasch) design with 20 items
design_1pl <- irt_design(
model = "1PL",
n_items = 20,
item_params = list(b = seq(-2, 2, length.out = 20))
)
# 2PL design
design_2pl <- irt_design(
model = "2PL",
n_items = 30,
item_params = list(
a = rlnorm(30, 0, 0.25),
b = seq(-2, 2, length.out = 30)
)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.