predict.ddfMLR | R Documentation |
"ddfMLR"
class.S3 method for predictions from the model used in the
object of "ddfMLR"
class.
## S3 method for class 'ddfMLR'
predict(object, item = "all", match, group, ...)
object |
an object of |
item |
numeric or character: either character |
match |
numeric: matching criterion for new observations. |
group |
numeric: group membership for new observations. |
... |
other generic parameters for |
Adela Hladka (nee Drabinova)
Institute of Computer Science of the Czech Academy of Sciences
hladka@cs.cas.cz
Patricia Martinkova
Institute of Computer Science of the Czech Academy of Sciences
martinkova@cs.cas.cz
Hladka, A. & Martinkova, P. (2020). difNLR: Generalized logistic regression models for DIF and DDF detection. The R Journal, 12(1), 300–323, \Sexpr[results=rd]{tools:::Rd_expr_doi("10.32614/RJ-2020-014")}.
ddfMLR
for DDF detection among nominal data using multinomial log-linear regression model.
predict
for generic function for prediction.
## 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
(x <- ddfMLR(Data, group, focal.name = 1, key))
# fitted values
predict(x, item = 1)
# predicted values
predict(x, item = 1, match = 0, group = c(0, 1))
predict(x, item = x$DDFitems, match = 0, group = c(0, 1))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.