score {CTT} | R Documentation |
This function can score multiple choice item responses. This function can also call and return results from function reliability.
score(items, key = NA, output.scored = FALSE, ID = NA, rel = FALSE)
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. |
John T. Willse, Zhan Shu
reliability
# 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)