dif_mh | R Documentation |
Conducts DIF analysis with the Mantel-Haenszel method
dif_mh(
item.data,
dif.groups,
match.type,
match.scores,
match.bins = NULL,
exclude = NULL,
stop = TRUE
)
item.data |
A |
dif.groups |
factor vector of group membership for which DIF is evaluated. |
match.type |
For the loess, MH, and logistic methods, a character indicating whether a
total summed score ( |
match.scores |
A numeric vector (if |
match.bins |
For MH, an optional vector of bin sizes for stratifying the |
exclude |
character vector of column names in |
stop |
If |
run_mh
conducts a Mantel-Haenszel test via mantelhaen.test
for each
item in item.data
, except those specified in exclude
, grouped by dif.groups
and stratified by the scores supplied
to match.scores
, which, if specified, are binned by match.bins
. Biased items
are identified through a two-step process of initial and refinement phases.
A list containing
a data.frame
with MH results for each item in item.data
an integer vector of the items showing DIF (i.e., biased items)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.