# Automated scoring for CRT7 responses using the categorical coding scheme:
reflectR::CRT7(
item1 = c("five", "5 cents", "10"),
item2 = c("5", "one hundred", "100"),
item3 = c("47", "24", "forty seven"),
item4 = c("four", "nineeee", "maybe 4?"),
item5 = c("29", "thirty", "30"),
item6 = c("twentyyyy", "ten I think", NA),
item7 = c("your behind", "poorer", "richer"),
codingscheme = "categ",
na.rm = TRUE)
# Compute the sum score for CRT7 responses based on binary-coded correctness:
reflectR::CRT7(
item1 = c("five", "5 cents", "10"),
item2 = c("5", "one hundred", "100"),
item3 = c("47", "24", "forty seven"),
item4 = c("four", "nineeee", "maybe 4?"),
item5 = c("29", "thirty", "30"),
item6 = c("twentyyyy", "ten I think", NA),
item7 = c("your behind", "poorer", "richer"),
codingscheme = "sum",
na.rm = FALSE)$crt_sum
Run the code above in your browser using DataLab