evalPbc | R Documentation |
This function evaluates discrimination statistics for the categories of categorical variables, i.e. the correlations of each category with the total score on the test..
evalPbc(pbcs, mistypes = c("mnr", "mbd", "mir", "mbi"),
minPbcAtt = .05, maxPbcDis = .005, maxPbcMis = .07)
pbcs |
A data frame with the discrimination values for each category of categorical variables: output of |
mistypes |
Character or numeric vector. It will be checked, whether the missing types in this vector are defined for all items. |
minPbcAtt |
Numeric. Minimum correlation of attractors with total test score. If it is lower, the attractor will be flagged. |
maxPbcDis |
Numeric. Maximum correlation of distractors with total test score. If it is higher, the respective distractor will be flagged. |
maxPbcMis |
Numeric. Maximum correlation of missing with total test score. If it is higher, the respective missing type will be flagged. |
List. NULL
(empty list) if everything is OK. Otherwise, returns list of character vectors containing the names of the flagged items:
zeroFreqAtt |
Items with attractor frequency of zero. |
zeroFreqDis |
Items with distractor frequencies of zero. |
lowMisPbcAtt |
Items with too low (lower than |
highPbcDis |
Items with too high (higher than |
highPbcMis |
Items with too high (higher than |
Karoline Sachse, Philipp Franikowski
data(inputDat)
data(inputList)
datRaw <- mergeData(newID = "ID", datList = inputDat, addMbd = TRUE)
datRec <- recodeData(datRaw, values = inputList$values,
subunits=inputList$subunits)
pbcs <- catPbc(datRaw, datRec, idRaw = "ID", idRec = "ID",
context.vars = "hisei", values = inputList$values,
subunits = inputList$subunits)
evalPbc(pbcs)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.