discrimination {classicaltest} | R Documentation |
Item discrimination
Description
Estimates item discrimination of a corrected matrix or data frame.
Usage
discrimination(x, wt = NULL, itemscores = NULL, administered = NULL)
Arguments
x |
a data frame or matrix of scored data. |
wt |
a vector with total weights. Default is |
itemscores |
a numeric vector indicating all the possible scores for all items.
If |
administered |
a logical matrix indicating which items were administered.
The dimensions should be the same as |
Value
a list.
Examples
# No weights
ex <- correct(x = dichodata, key = dichokey, navalue = NA)
discrimination(ex)
# With weights
set.seed(1919)
wt <- sample(x = 1:4, size = nrow(dichodata), replace = TRUE)
discrimination(ex,wt = wt)
[Package classicaltest version 0.7.5 Index]