QMEtest: Create QMEtest objects

Description Usage Arguments Value

Description

Creates a QMEtest object from given test responses and (optional) key

Usage

1
QMEtest(test, key = NULL, id = TRUE, na_to_0 = TRUE, create_key = FALSE)

Arguments

test

A data.frame containing the test responses. If key is not provided, the test is assumed to be already scored. The data frame should be formatted in the wide format, so that each row represents a student, and each column represents an item. If id = TRUE, the default, the first column is assumed to be the id.

key

A vector or single-row data.frame indicating the keyed responses (i.e. the correct answers for cognitive tests).

id

Whether an ID column has been provided. If id = FALSE, an id will be created in the output object. @param na_to_0 When scoring, assume that NAs are scored as 0? Default is TRUE

create_key

For SCORED data only, creates a dummy key mapping input to output values. This allows the distractor analysis to be used for scored data

Value

A QMEtest object. This is a list with the following elements:

raw_test

The raw test responses (NULL if the test is already scored).

key

The key

keyed_test

The keyed/scored test, using the right_wrong function


zief0002/QME documentation built on May 4, 2019, 11:22 p.m.