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.1-1. The newest development version available on GitHub is 1.5.1-1.

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

477

Version

1.5.1-1

License

GPL-3

Maintainer

Adela Hladka

Last Published

March 3rd, 2025

Functions in difNLR (1.5.1-1)

MSATB

Dichotomous dataset of Medical School Admission Test in Biology.
GMAT2test

Dataset based on GMAT.
GMATtest

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

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

DIF detection among ordinal data.
coef.ddfMLR

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

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

DDF detection for nominal data.
estimNLR

Non-linear regression DIF models estimation.
NLR

DIF statistics for non-linear regression models.
difNLR

DIF detection using non-linear regression method.
coef.difNLR

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

DIF likelihood ratio statistics for ordinal data.
predict.ddfMLR

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

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

Creates a formula for non-linear regression DIF models.
logLik.difORD

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

ICC plots 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.difORD

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

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

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

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

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

Calculates starting values for non-linear regression DIF models.
GMATkey

Key of correct answers for GMATtest dataset.
GMAT

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

Dichotomous dataset based on GMAT.
GMAT2key

Key of correct answers for GMAT2test dataset.
MLR

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

Key of correct answers for MSATBtest dataset.
MSATBtest

Dataset of School Admission Test in Biology.