aiDIF: Differential Item Functioning for AI-Scored Assessments

Detects and quantifies differential item functioning (DIF) in AI-scored educational and psychological assessments. Provides a fully self-contained robust DIF engine (M-estimation via iteratively re-weighted least squares with the bi-square loss) alongside the novel Differential AI Scoring Bias (DASB) test, which detects item-level scoring shifts that differ across subgroups when comparing human and AI scoring conditions. Includes simulation utilities, anchor weight diagnostics, and an AI-effect classification framework.

Package details

AuthorSubir Hait [aut, cre] (ORCID: <https://orcid.org/0009-0004-9871-9677>)
MaintainerSubir Hait <haitsubi@msu.edu>
LicenseGPL (>= 3)
Version0.1.0
URL https://github.com/causalfragility-lab/aiDIF
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:
install.packages("aiDIF")

Try the aiDIF package in your browser

Any scripts or data that you put into this service are public.

aiDIF documentation built on April 22, 2026, 1:10 a.m.