Description Usage Arguments Details Author(s) See Also Examples

View source: R/DistractorAnalysis.R

Performs distractor analysis for each item and optional number of groups.

1 | ```
DistractorAnalysis(data, key, p.table = FALSE, num.groups = 3, matching = NULL)
``` |

`data` |
character: data matrix or data frame. See |

`key` |
character: answer key for the items. |

`p.table` |
logical: should the function return the proportions. If |

`num.groups` |
numeric: number of groups to that should be respondents splitted. |

`matching` |
numeric: numeric vector. If not provided, total score is calculated and distractor analysis is performed based on it. |

This function is adapted version of `distractor.analysis`

function from `CTT`

package.
The scores are calculatede using the item data and key. The respondents are then splitted into
the `num.groups`

-quantiles and the number (or proportion) of respondents in each quantile is
reported with respect to their answers.

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)`

.

Adela Drabinova

Institute of Computer Science, The Czech Academy of Sciences

Faculty of Mathematics and Physics, Charles University

[email protected]

Patricia Martinkova

Institute of Computer Science, The Czech Academy of Sciences

[email protected]

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | ```
## Not run:
# loading 100-item medical admission test data
data(dataMedicaltest, dataMedicalkey)
data <- dataMedicaltest[, 1:100]
key <- unlist(dataMedicalkey)
# distractor analysis for dataMedicaltest data set
DistractorAnalysis(data, key)
# distractor analysis for dataMedicaltest data set with proportions
DistractorAnalysis(data, key, p.table = T)
# distractor analysis for dataMedicaltest data set for 6 groups
DistractorAnalysis(data, key, num.group = 6)
## End(Not run)
``` |

patriciamar/ShinyItemAnalysis documentation built on Jan. 14, 2019, 8:53 p.m.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.