| MLR {difNLR} | R Documentation |
DDF likelihood ratio statistics based on multinomial log-linear regression model.
Description
Calculates DDF likelihood ratio statistics for nominal data based on multinomial log-linear model.
Usage
MLR(Data, group, key, type = "both", match = "zscore", anchor = 1:ncol(Data),
p.adjust.method = "none", alpha = 0.05, parametrization)
Arguments
Data |
data.frame or matrix: dataset which rows represent unscored examinee answers (nominal) and columns correspond to the items. |
group |
numeric: binary vector of group membership. |
key |
character: the answer key. Each element corresponds to the correct answer of one item. |
type |
character: type of DDF to be tested. Either
|
match |
numeric or character: matching criterion to be used as
an estimate of trait. Can be either |
anchor |
character or numeric: specification of DIF free
items. A vector of item identifiers (integers specifying the
column number) specifying which items are currently considered
as anchor (DIF free) items. Argument is ignored if |
p.adjust.method |
character: method for multiple comparison
correction. Possible values are |
alpha |
numeric: significance level (default is 0.05). |
parametrization |
deprecated. Use
|
Details
P(y = k) = exp(b_0k + b_1k * x + b_2k * g + b_3k * x * g) / (1 + \sum exp(b_0l + b_1l * x + b_2l * g + b_3l * x * g)),
where x is by default standardized total score (also called
Z-score) and g is a group membership. Probability of correct
answer (specified in argument key) is
P(y = k) = 1/(1 + \sum exp(b_0l + b_1l * x + b_2l * g + b_3l * x * g)).
Parameters are estimated via neural networks. For more details see
multinom.
Value
A list with the following arguments:
Svalthe values of likelihood ratio test statistics.
pvalthe p-values by likelihood ratio test.
adj.pvalthe adjusted p-values by likelihood ratio test using
p.adjust.method.dfthe degress of freedom of likelihood ratio test.
par.m0the estimates of null model.
par.m1the estimates of alternative model.
se.m0standard errors of parameters in null model.
se.m1standard errors of parameters in alternative model.
cov.m0list of covariance matrices of item parameters for null model.
cov.m1list of covariance matrices of item parameters for alternative model.
ll.m0log-likelihood of m0 model.
ll.m1log-likelihood of m1 model.
AIC.m0AIC of m0 model.
AIC.m1AIC of m1 model.
BIC.m0BIC of m0 model.
BIC.m1BIC of m1 model.
Author(s)
Adela Hladka (nee Drabinova)
Institute of Computer Science of the Czech Academy of Sciences
Faculty of Mathematics and Physics, Charles University
hladka@cs.cas.cz
Patricia Martinkova
Institute of Computer Science of the Czech Academy of Sciences
martinkova@cs.cas.cz
References
Agresti, A. (2010). Analysis of ordinal categorical data. Second edition. John Wiley & Sons.
Hladka, A. (2021). Statistical models for detection of differential item functioning. Dissertation thesis. Faculty of Mathematics and Physics, Charles University.
Hladka, A. & Martinkova, P. (2020). difNLR: Generalized logistic regression models for DIF and DDF detection. The R Journal, 12(1), 300–323, doi:10.32614/RJ-2020-014.
See Also
Examples
## Not run:
# loading data
data(GMATtest, GMATkey)
Data <- GMATtest[, 1:20] # items
group <- GMATtest[, "group"] # group membership variable
key <- GMATkey # correct answers
# testing both DDF effects
MLR(Data, group, key, type = "both")
# testing uniform DDF effects
MLR(Data, group, key, type = "udif")
# testing non-uniform DDF effects
MLR(Data, group, key, type = "nudif")
## End(Not run)