ostudy | R Documentation |
Functions for analyzing distributions of unscored item responses by ability, also known as distractor analysis.
ostudy(
x,
groups,
scores,
cuts = c(0, 1/3, 2/3, 1),
key,
labels = c("low", "mid", "high"),
itemid = colnames(x),
filename,
sep = ","
)
x |
matrix or data.frame of unscored item responses. |
groups |
optional grouping variable as a vector with length
|
scores |
optional vector of scores defining the ability or trait
levels of respondents. When |
cuts |
vector of cut scores used to define groups. |
key |
vector of keyed responses, one per column in |
labels |
character vector for labeling groups in output, with length
|
itemid |
vector of labels for items, defaulting to column names in
|
filename |
optional path to file where output will be written. |
sep |
character string used to separate output in written file. |
Returns three lists of distractor analysis tables, one per item,
all stored within a larger list. These lists are counts
for raw
frequencies, rowpct
for percentages by row, and colpct
for
percentages by column. Each table within each of these lists contains the
distribution of unscored item responses by group.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.