score {CTT}R Documentation

Function to score the response files

Description

This function can score multiple choice item responses. This function can also call and return results from function reliability.

Usage

score(items, key = NA, output.scored = FALSE, ID = NA, rel = FALSE)

Arguments

items The item responses to be scored
key The answer key
output.scored If output.scored=FALSE (the default) only a vector of scores is returned. If output.scored=TRUE a matrix containing scored items is returned.
ID If respondent IDs are provided scores are labeled appropriately.
rel If rel=TRUE, the function will call the function reliability and provide that output as well.

Author(s)

John T. Willse, Zhan Shu

See Also

reliability

Examples

# Example data provided with package
data(CTTdata)
data(CTTkey)

# Scores for each preson 
score(CTTdata,CTTkey)

# Scores, scored file, and relibility
score(CTTdata,CTTkey,output.scored=TRUE,rel=TRUE)

[Package CTT version 1.0 Index]