Skip to contents

Compares the category probabilities of the engine with those of the fitted mirt model, item by item, for any of the six models, so that a mapping mistake does not go unnoticed. Items are matched by the item column.

Usage

validate_questionnaire_against_mirt(
  bank_scale,
  fit,
  thetas = seq(-4, 4, 0.5),
  tol = 1e-06
)

Arguments

bank_scale

The rows of one scale of a questionnaire read with read_questionnaire.

fit

The mirt model fitted to that scale.

thetas

Ability values at which the probabilities are compared.

tol

Largest difference accepted.

Value

The largest difference, invisibly; a warning when it is above tol.