scoringKey: Function to create a scoring key for the 'scoreData' function

Description Usage Arguments Value Author(s) Examples

Description

Creates a list with one entry per item, where the name is the item id and the value is the correct response. The value can either be a single number, when there is only one correct answer, or a vector of two numbers, where the correct answer is within a range (Athena items for example)

Usage

1
scoringKey(key.df)

Arguments

key.df

Data frame containing one column with item ID (named "id") and one column with the corresponding correct responses (named "key"). If the correct response is a range, use the following format: "RANGE: 1 - 1.1".

Value

List with one entry per item. The entry is named after the item id, and the value is the correct response to the item.

Author(s)

Morgan Strom

Examples

1
2
3
4
df <- data.frame(id = c("item_1", "item_2", "item_3"),
                 key = c("2", 3, "RANGE: 1 - 1.1"))

scoringKey(df)

talentlens/talentlens documentation built on May 31, 2019, 2:52 a.m.