Package: difR 6.0.0

difR: Collection of Methods to Detect Dichotomous and Polytomous Differential Item Functioning (DIF)

Methods to detect differential item functioning (DIF) in dichotomous and polytomous items, using both classical and modern approaches. These include Mantel-Haenszel procedures, logistic regression (including ordinal models), and regularization-based methods such as LASSO. Uniform and non-uniform DIF effects can be detected, and some methods support multiple focal groups. The package also provides tools for anchor purification, rest score matching, effect size estimation, and DIF simulation. See Magis, Beland, Tuerlinckx, and De Boeck (2010, Behavior Research Methods, 42, 847–862, <doi:10.3758/BRM.42.3.847>) for a general overview.

Authors:David Magis [aut], Sebastien Beland [aut, cre], Carl F. Falk [aut], Gilles Raiche [aut]

difR_6.0.0.tar.gz
difR_6.0.0.zip(r-4.7-any)difR_6.0.0.zip(r-4.6-any)difR_6.0.0.zip(r-4.5-any)
difR_6.0.0.tgz(r-4.6-any)difR_6.0.0.tgz(r-4.5-any)
difR_6.0.0.tar.gz(r-4.7-any)difR_6.0.0.tar.gz(r-4.6-any)
difR_6.0.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
difR/json (API)

# Install 'difR' in R:
install.packages('difR', repos = c('https://343babou.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/343babou/difr/issues

Datasets:
  • SCS - Sexual Compulsivity Scale Data Set
  • verbal - Verbal Aggression Data Set

On CRAN:

Conda:

5.96 score 1 stars 6 packages 304 scripts 1.8k downloads 9 mentions 47 exports 120 dependencies

Last updated from:a50aefa3ed. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-develOK217
source / vignettesOK289
linux-releaseOK193
macos-releaseOK170
macos-oldrelOK236
windows-develOK155
windows-releaseOK174
windows-oldrelOK153
wasm-releaseOK127

Exports:breslowDaycontrastMatrixdichoDifdifBDdifGenLogisticdifGenLorddifGMHdifLogisticdifLogRegdifLorddifLRTdifMantel.polydifMHdifPolyLogisticdifQuadedifRajudifSIBTESTdifStddifTIDgenDichoDifgenLogistikgenLordChi2genMantelHaenszelitemPar1PLitemPar2PLitemPar3PLitemPar3PLconstitemParEstitemRescaleLassoDatalassoDIF.ABWIClassoDIF.CVliu_agresti_ccorLogistikLogistikPolyLordChi2LRTmantelHaenszelplot_lasso_pathsRajuZselectDifselectGenDifsibTestSimDichoDifSimPolyDifstdPDIFsubtestLogistic

Dependencies:admiscaskpassaudiobeeprbitbit64bootbriocallrcellrangerclassclicliprclustercodetoolscpp11crayoncurldata.tabledcurverdeltaPlotRDerivdescDescToolsdiffobjdigestdplyre1071evaluateExactexpmforcatsforeachfsfuturefuture.applygenericsgldglmnetglobalsglueGPArotationgridExtragtablehavenhmshttriteratorsjsonlitelatticelifecyclelistenvlme4lmomltmmagrittrMASSMatrixmgcvmimeminqamirtmsmmvtnormnlmenloptropensslotelparallellypbapplypermutepillarpkgbuildpkgconfigpkgloadpolycorpraiseprettyunitsprocessxprogressprogressrproxypsqs2R.methodsS3R.ooR.utilsR6rbibutilsRcppRcppArmadilloRcppEigenRcppParallelRdpackreadrreadxlreformulasrematchrlangrootSolverprojrootrstudioapisessioninfoshapeSimDesignsplines2stringfishsurvivalsystestthattibbletidyselecttzdbutf8vctrsveganVGAMvroomwaldowithr

Readme and manuals

Help Manual

Help pageTopics
Collection of methods to detect dichotomous and polytomous differential item functioning (DIF) in psychometricsdifR-package difR
Breslow-Day DIF statisticbreslowDay
Contrast matrix for computing generalized Lord's chi-squared DIF statisticcontrastMatrix
Comparison of DIF detection methodsdichoDif print.dichoDif
Breslow-Day DIF methoddifBD plot.BD print.BD
Generalized logistic regression DIF methoddifGenLogistic plot.genLogistic print.genLogistic
Generalized Lord's chi-squared DIF methoddifGenLord plot.GenLord print.GenLord
Generalized Mantel-Haenszel DIF methoddifGMH plot.GMH print.GMH
Logistic regression DIF methoddifLogistic plot.Logistic print.Logistic
General logistic regression DIF methoddifLogReg
Lord's chi-squared DIF methoddifLord plot.Lord print.Lord
Likelihood-Ratio Test DIF methoddifLRT plot.LRT print.LRT
Mantel Differential Item Functionning Detection for Polytomous ItemsdifMantel.poly
Mantel-Haenszel DIF methoddifMH plot.MH print.MH
Logistic regression DIF statistics for polytomous (ordinal) itemsdifPolyLogistic
Detection of Differential Item Functioning Using Quade-Type Association Indices for Polytomous (Ordinal) ItemdifQuade plot.difQuade print.difQuade
Raju's area DIF methoddifRaju plot.Raj print.Raj
SIBTEST and Crossing-SIBTEST DIF methoddifSIBTEST plot.SIBTEST print.SIBTEST
Standardization DIF methoddifStd plot.PDIF print.PDIF
Transformed Item Difficulties (TID) DIF methoddifTID plot.TID print.TID
Comparison of DIF detection methods among multiple groupsgenDichoDif print.genDichoDif
Generalized logistic regression DIF statisticgenLogistik
Generalized Lord's chi-squared DIF statisticgenLordChi2
Generalized Mantel-Haenszel DIF statisticgenMantelHaenszel
Item parameter estimation for DIF detection using Rasch (1PL) modelitemPar1PL
Item parameter estimation for DIF detection using 2PL modelitemPar2PL
Item parameter estimation for DIF detection using 3PL modelitemPar3PL
Item parameter estimation for DIF detection using constrained 3PL modelitemPar3PLconst
Item parameter estimation for DIF detectionitemParEst
Rescaling item parameters by equal means anchoringitemRescale
Rearrange the data matrix for the Detection of DIF using the Lasso Approach (Magis et al. (2015)LassoData
Detection of Differential Item Functioning Using the Lasso Approach: Selection of Optimal lambda ValuelassoDIF.ABWIC
Detection of Differential Item Functioning Using the Lasso Approach: Selection of Optimal lambda via Cross-ValidationlassoDIF.CV
Liu-Agresti Common Cumulative Odds Ratioliu_agresti_ccor
Logistic regression DIF statisticLogistik
Detection of DIF in polytomous (ordinal) items using cumulative logistic regressionLogistikPoly
Lord's chi-square DIF statisticLordChi2
Likelihood-Ratio Test DIF statisticLRT
Mantel-Haenszel DIF statisticmantelHaenszel
Plot coefficient paths from LASSO DIFplot_lasso_paths
Raju's area DIF statisticRajuZ
Sexual Compulsivity Scale Data SetSCS
Selection of one of the DIF detection methodsselectDif
Selection of one of the DIF detection methods among multiple groupsselectGenDif
SIBTEST DIF statisticsibTest
Generation of DIF for dichotomous itemsSimDichoDif
Generation of DIF for polytomous itemsSimPolyDif
Standardization DIF statisticstdPDIF
Testing for DIF among subgroups with generalized logistic regressionprint.subLogistic subtestLogistic
Verbal Aggression Data Setverbal