Description Usage Arguments Details Author(s) Examples
Plots graphical representation of item distractor analysis with proportions and optional number of groups.
1 2 | plotDistractorAnalysis(data, key, num.groups = 3, item = 1, item.name,
multiple.answers = TRUE, matching = NULL)
|
data |
character: data matrix or data frame. See Details. |
key |
character: answer key for the items. |
num.groups |
numeric: number of groups to that should be respondents splitted. |
item |
numeric: the number of item to be plotted. |
item.name |
character: the name of item. |
multiple.answers |
logical: should be all combinations plotted (default) or should be answers splitted into distractors. See Details. |
matching |
numeric: numeric vector. If not provided, total score is calculated and distractor analysis is performed based on it. |
This function is graphical representation of DistractorAnalysis
function.
The scores are calculatede using the item data and key. The respondents are then splitted into
the num.groups
-quantiles and the proportion of respondents in each quantile is
reported with respect to their answers, using all reported combinations (default) or distractors.
These proportions are plotted.
The data
is a matrix or data frame whose rows represents unscored item response from a
multiple-choice test and columns correspond to the items.
The key
must be a vector of the same length as ncol(data)
.
If multiple.answers = TRUE
(default) all reported combinations of answers are plotted.
If multiple.answers = FALSE
all combinations are splitted into distractors and only these
are then plotted with correct combination.
Adela Drabinova
Institute of Computer Science, The Czech Academy of Sciences
Faculty of Mathematics and Physics, Charles University
drabinova@cs.cas.cz
Patricia Martinkova
Institute of Computer Science, The Czech Academy of Sciences
martinkova@cs.cas.cz
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | ## Not run:
# loading data
data(dataMedical, dataMedicaltest, dataMedicalkey)
# Difficulty/Discriminaton plot for medical admission test
DDplot(dataMedical)
# item 48 is very hard, thus does not discriminate well
# item 57 discriminates well
# item 32 does not discriminate well
plotDistractorAnalysis(dataMedicaltest, dataMedicalkey, item = 48, multiple.answers = F)
# correct answer B does not function well
plotDistractorAnalysis(dataMedicaltest, dataMedicalkey, item = 57, multiple.answers = F)
# all options function well, thus the whole item discriminates well
plotDistractorAnalysis(dataMedicaltest, dataMedicalkey, item = 32, multiple.answers = F)
# functions well, thus the whole item discriminates well
# distractor analysis plot for item 48, 57 and 32, all combinations
plotDistractorAnalysis(dataMedicaltest, dataMedicalkey, item = 48)
plotDistractorAnalysis(dataMedicaltest, dataMedicalkey, item = 57)
plotDistractorAnalysis(dataMedicaltest, dataMedicalkey, item = 32)
# distractor analysis plot for item 57, all combinations and 6 groups
plotDistractorAnalysis(dataMedicaltest, dataMedicalkey, num.group = 6, item = 57)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.