| irt_study | R Documentation |
Add study-level conditions to an IRT design specification. This captures decisions 4–5 from the Schroeders & Gnambs (2025) framework: sample sizes and missing data mechanism.
irt_study(
design,
sample_sizes,
missing = "none",
missing_rate = NULL,
test_design = NULL,
estimation_model = NULL
)
design |
An |
sample_sizes |
Integer vector of sample sizes to evaluate. Values are coerced to integer, sorted in ascending order, and deduplicated. |
missing |
Character string specifying the missing data mechanism. One
of |
missing_rate |
Numeric value in |
test_design |
A list specifying the test design for structured
missingness. Required when
|
estimation_model |
Character string specifying the IRT model to fit.
One of |
An S3 object of class irt_study (a named list) with elements
design, missing, missing_rate, sample_sizes,
test_design, and estimation_model.
irt_design() for the design specification,
irt_simulate() to run the simulation.
# Simple study with no missing data
d <- irt_design(
model = "1PL", n_items = 20,
item_params = list(b = seq(-2, 2, length.out = 20))
)
study <- irt_study(d, sample_sizes = c(100, 250, 500))
# Study with MCAR missingness
study_mcar <- irt_study(d, sample_sizes = c(200, 400),
missing = "mcar", missing_rate = 0.2)
# Model misspecification: generate 2PL, fit 1PL
d_2pl <- irt_design(
model = "2PL", n_items = 15,
item_params = list(a = rlnorm(15, 0, 0.25), b = rnorm(15))
)
study_misspec <- irt_study(d_2pl, sample_sizes = c(100, 300),
estimation_model = "1PL")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.