The generalized logistic regression method (Magis, Raiche, Beland and Gerard, 2010) allows for detecting both uniform and non-uniform differential item
functioning among multiple groups without requiring an item response model approach. It consists in fitting a logistic model with the matching criterion,
the group membership and an interaction between both as covariates. The statistical significance of the parameters
related to group membership and the group-score interaction is then evaluated by means of the usual likelihood-ratio
test. The argument type permits to test either both uniform and nonuniform effects simultaneously (type="both"), only uniform
DIF effect (type="udif") or only nonuniform DIF effect (type="nudif"). The identification of DIF items can be performed with
either the Wald test or the likelihood ratio test, by setting the criterion argument to "Wald" or "LRT" respectively.
See genLogistik for further details.
The matching criterion can be either the test score or any other continuous or discrete variable to be passed in the genLogistik function. This is specified by the match argument. By default, it takes the value "score" and the test score (i.e. raw score) is computed. The second option is to assign to match a vector of continuous or discrete numeric values, which acts as the matching criterion. Note that for consistency this vector should not belong to the Data matrix.
The Data is a matrix whose rows correspond to the subjects and columns to the items. In addition, Data can hold the vector of group membership.
If so, group indicates the column of Data which corresponds to the group membership, either by specifying its name or by giving the column number.
Otherwise, group must be a vector of same length as nrow(Data).
Missing values are allowed for item responses (not for group membership) but must be coded as NA values. They are discarded from the fitting of the
logistic models (see glm for further details).
The vector of group membership must hold at least three values, either as numeric or character. The focal groups are defined by the values of the
argument focal.names. If there is a unique focal group, then difGenLogistic returns the output of difLogistic.
The threshold (or cut-score) for classifying items as DIF is computed as the quantile of the chi-squared distribution with lower-tail
probability of one minus alpha and with J (if type="udif" or type="nudif") or 2J (if type="both") degrees of
freedom (J is the number of focal groups).
Item purification can be performed by setting purify to TRUE. Purification works as follows: if at least one item is detected as functioning
differently at the first step of the process, then the data set of the next step consists in all items that are currently anchor (DIF free) items, plus the
tested item (if necessary). The process stops when either two successive applications of the method yield the same classifications of the items
(Clauser and Mazor, 1998), or when nrIter iterations are run without obtaining two successive identical classifications. In the latter case a warning message is printed.
Adjustment for multiple comparisons is possible with the argument p.adjust.method. The latter must be an acronym of one of the available adjustment methods of the p.adjust function. According to Kim and Oshima (2013), Holm and Benjamini-Hochberg adjustments (set respectively by "Holm" and "BH") perform best for DIF pruposes. See p.adjust function for further details. Note that item purification is performed on original statistics and p-values; in case of adjustment for multiple comparisons this is performed after item purification.
A pre-specified set of anchor items can be provided through the anchor argument. It must be a vector of either item names (which must match exactly the column names of Data argument) or integer values (specifying the column numbers for item identification). In case anchor items are provided, they are used to compute the test score (matching criterion), including also the tested item. None of the anchor items are tested for DIF: the output separates anchor items and tested items and DIF results are returned only for the latter. By default it is NULL so that no anchor item is specified. Note also that item purification is not activated when anchor items are provided (even if purify is set to TRUE). Moreover, if the match argument is not set to "score", anchor items will not be taken into account even if anchor is not NULL.
The measures of effect size are provided by the difference \(\Delta R^2\) between the \(R^2\) coefficients of the two nested models (Nagelkerke, 1991;
Gomez-Benito, Dolores Hidalgo and Padilla, 2009). The effect sizes are classified as "negligible", "moderate" or "large". Two scales are available, one from
Zumbo and Thomas (1997) and one from Jodoin and Gierl (2001). The output displays the \(\Delta R^2\) measures, together with the two classifications.
The output of the difGenLogistic, as displayed by the print.genLogistic function, can be stored in a text file provided that save.output is set
to TRUE (the default value FALSE does not execute the storage). In this case, the name of the text file must be given as a character string into the
first component of the output argument (default name is "out"), and the path for saving the text file can be given through the second component of
output. The default value is "default", meaning that the file will be saved in the current working directory. Any other path can be specified as a
character string: see the Examples section for an illustration.
Two types of plots are available. The first one is obtained by setting plot="lrStat" and it is the default option. The likelihood ratio statistics are
displayed on the Y axis, for each item. The detection threshold is displayed by a horizontal line, and items flagged as DIF are printed with the color defined by
argument col. By default, items are spotted with their number identification (number=TRUE); otherwise they are simply drawn as dots whose form is
given by the option pch.
The other type of plot is obtained by setting plot="itemCurve". In this case, the fitted logistic curves are displayed for one specific item set by the
argument item. The latter argument can hold either the name of the item or its number identification. If the argument itemFit takes the value
"best", the curves are drawn according to the output of the best model among \(M_0\) and \(M_1\). That is, two curves are drawn if the item is flagged
as DIF, and only one if the item is flagged as non-DIF. If itemFit takes the value "null", then the two curves are drawn from the fitted parameters
of the null model \(M_0\). See genLogistik for further details on the models. The colors and types of traits for these curves are defined by means
of the arguments colIC and ltyIC respectively. These are set as vectors of length \(J+1\), the first element for the reference group and the others
for the focal groups. Finally, the ref.name argument permits to display the name if the reference group (instead of "Reference") in the legend.
Both types of plots can be stored in a figure file, either in PDF or JPEG format. Fixing save.plot to TRUE allows this process. The figure is defined
through the components of save.options. The first two components perform similarly as those of the output argument. The third component is the figure
format, with allowed values "pdf" (default) for PDF file and "jpeg" for JPEG file.