This command computes the generalized Mantel-Haenszel statistic (Somes, 1986) in the specific framework of differential item functioning. It forms the basic command
of difGMH
and is specifically designed for this call.
The data are passed through the data
argument, with one row per subject and one column per item. Missing values are allowed but must be coded as NA
values. They are discarded from sum-score computation.
The vector of group membership, specified with member
argument, must hold only zeros and positive integers. The value zero corresponds to the reference group,
and each positive integer value corresponds to one focal group. At least two different positive integers must be supplied.
The matching criterion can be either the test score or any other continuous or discrete variable to be passed in the genMantelHaenszel
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.
Option anchor
sets the items which are considered as anchor items for computing generalized Mantel-Haenszel statistics. Items other than the anchor items and
the tested item are discarded. anchor
must hold integer values specifying the column numbers of the corresponding anchor items. It is primarily designed to
perform item purification.