score: Function to score the response files

Description Usage Arguments Author(s) See Also Examples

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)

CTT documentation built on May 29, 2017, 10:44 a.m.

Search within the CTT package
Search all R packages, documentation and source code