exactGMH: Exact and Permutation-Based Mantel Tests for Differential Item Functioning in Dichotomous and Polytomous Items

Screens dichotomous and polytomous test items for Differential Item Functioning (DIF) using an extension of the Mantel (1963) <doi:10.1080/01621459.1963.10500879> and generalized Mantel-Haenszel statistic, with statistical significance computed via permutation rather than the conventional asymptotic chi-square approximation. Following Hemerik and Goeman (2018) <doi:10.1007/s11749-017-0571-1>, the permutation p-value is exact at the nominal level rather than an approximation, even for a finite number of permutations. This makes the test valid for small samples (fewer than 200 examinees per group), a condition common in classroom-, program-, and institution-level assessment where existing exact-inference options in other software are restricted to dichotomous items only. An optional Benjamini-Hochberg or Bonferroni correction addresses multiple comparisons when screening many items at once.

Version: 0.1.0
Depends: R (≥ 4.0)
Imports: stats
Suggests: testthat (≥ 3.0.0), shiny
Published: 2026-08-09
DOI: 10.32614/CRAN.package.exactGMH (may not be active yet)
Author: Tri Zahra Ningsih [aut, cre], Aman [aut], Ahmad Nasrulloh [aut], Hera Hastuti [aut], Suci Kurnia Putri [aut]
Maintainer: Tri Zahra Ningsih <trizahra10019 at gmail.com>
BugReports: https://github.com/exactGMH-project/exactGMH/issues
License: MIT + file LICENSE
URL: https://github.com/exactGMH-project/exactGMH
NeedsCompilation: no
CRAN checks: exactGMH results

Documentation:

Reference manual: exactGMH.html , exactGMH.pdf

Downloads:

Package source: exactGMH_0.1.0.tar.gz
Windows binaries: r-devel: not available, r-release: not available, r-oldrel: not available
macOS binaries: r-release (arm64): not available, r-oldrel (arm64): not available, r-release (x86_64): not available, r-oldrel (x86_64): not available

Linking:

Please use the canonical form https://CRAN.R-project.org/package=exactGMH to link to this page.