Learn R Programming

difNLR

DIF and DDF Detection by Non-Linear Regression Models.

Description

The difNLR package provides methods for detecting differential item functioning (DIF) using non-linear regression models. Both uniform and non-uniform DIF effects can be detected when considering a single focal group. Additionally, the method allows for testing differences in guessing or inattention parameters between the reference and focal group. DIF detection is performed using either a likelihood-ratio test, an F-test, or Wald's test of a submodel. The software offers a variety of algorithms for estimating item parameters.

Furthermore, the difNLR package includes methods for detecting differential distractor functioning (DDF) using multinomial log-linear regression model. It also introduces DIF detection approaches for ordinal data via adjacent category logit and cumulative logit regression models.

Installation

The easiest way to get difNLR package is to install it from CRAN:

install.packages("difNLR")

Or you can get the newest development version from GitHub:

# install.packages("devtools")
devtools::install_github("adelahladka/difNLR")

Version

Current version on CRAN is 1.5.2-2. The newest development version available on GitHub is 1.5.2-2.

Reference

To cite difNLR package in publications, please, use:

To cite new estimation approaches provided in the difNLR() function, please, use:

Try online

You can try some functionalities of the difNLR package online using ShinyItemAnalysis application and package and its DIF/Fairness section.

Getting help

In case you find any bug or just need help with the difNLR package, you can leave your message as an issue here or directly contact us at hladka@cs.cas.cz

Copy Link

Version

Install

install.packages('difNLR')

Monthly Downloads

483

Version

1.5.2-2

License

GPL-3

Maintainer

Adela Hladka

Last Published

November 19th, 2025

Functions in difNLR (1.5.2-2)

coef.ddfMLR

Extract model coefficients from an object of "ddfMLR" class.
estimNLR

Non-linear regression DIF models estimation.
coef.difNLR

Extract item parameter estimates from an object of the "difNLR" class.
difNLR-package

DIF and DDF Detection by Non-Linear Regression Models.
difNLR

DIF detection using non-linear regression method.
NLR

DIF statistics for non-linear regression models.
coef.difORD

Extract model coefficients from an object of "difORD" class.
difORD

DIF detection among ordinal data.
ORD

DIF likelihood ratio statistics for ordinal data.
ddfMLR

DDF detection for nominal data.
logLik.difNLR

Log-likelihood and information criteria for an object of the "difNLR" class.
logLik.ddfMLR

Log-likelihood and information criteria for an object of "ddfMLR" class.
genNLR

Generates data set based on generalized logistic regression DIF and DDF models.
predict.difNLR

Predicted values for an object of the "difNLR" class.
plot.ddfMLR

ICC plots for an object of "ddfMLR" class.
logLik.difORD

Log-likelihood and information criteria for an object of "difORD" class.
plot.difNLR

ICC and test statistics plots for an object of the "difNLR" class.
plot.difORD

ICC plots for an object of "difORD" class.
formulaNLR

Creates a formula for non-linear regression DIF models.
predict.ddfMLR

Predicted values for an object of "ddfMLR" class.
startNLR

Calculates starting values for non-linear regression DIF models.
predict.difORD

Predicted values for an object of "difORD" class.
fitted.difNLR

Fitted values and residuals for an object of the "difNLR" class.
GMATkey

Key of correct answers for GMATtest dataset.
MSATB

Dichotomous dataset of Medical School Admission Test in Biology.
MSATBtest

Dataset of School Admission Test in Biology.
GMAT

Dichotomous dataset based on GMAT with the same total score distribution for groups.
GMAT2key

Key of correct answers for GMAT2test dataset.
GMAT2test

Dataset based on GMAT.
GMAT2

Dichotomous dataset based on GMAT.
MLR

DDF likelihood ratio statistics based on multinomial log-linear regression model.
MSATBkey

Key of correct answers for MSATBtest dataset.
GMATtest

Dataset based on GMAT with the same total score distribution for groups.