Generates item response data using the calibrated parameters from EQC.
Usage
simulate_response_data(
eqc_result,
n_persons,
latent_shape = "normal",
latent_params = list(),
seed = NULL
)Arguments
- eqc_result
An
eqc_resultobject fromeqc_calibrate().- n_persons
Integer. Number of persons to simulate.
- latent_shape
Character. Shape argument for
sim_latentG().- latent_params
List. Additional arguments for
sim_latentG().- seed
Optional integer for reproducibility.
Value
A list containing:
response_matrixN x I matrix of binary responses
thetaTrue abilities (N x 1)
betaItem difficulties (I x 1)
lambdaItem discriminations (I x 1)
Examples
if (FALSE) { # \dontrun{
# First, run EQC calibration
eqc_result <- eqc_calibrate(
target_rho = 0.80,
n_items = 25,
model = "rasch",
seed = 42
)
# Generate response data
sim_data <- simulate_response_data(
eqc_result = eqc_result,
n_persons = 1000,
latent_shape = "normal",
seed = 123
)
# Use with TAM for validation
tam_rel <- compute_reliability_tam(sim_data$response_matrix, model = "rasch")
} # }