fit_model: Fit an IRT Model (Internal)

View source: R/irt_simulate.R

fit_modelR Documentation

Fit an IRT Model (Internal)

Description

Wraps mirt::mirt() with error and convergence handling.

Usage

fit_model(data, model, se = TRUE)

Arguments

data

Numeric matrix of response data (may contain NAs).

model

Character string: "1PL", "2PL", or "GRM".

se

Logical. Compute standard errors? Default TRUE.

Value

A list with elements model (fitted mirt object or NULL) and converged (logical).


irtsim documentation built on April 24, 2026, 1:07 a.m.