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

1
score(items, key, 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

1
2
3
4
5
6
7
8
9
# 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)