# Automated scoring for CRT4 responses using the categorical coding scheme:
reflectR::CRT4(
item1 = c("four", "nineeee", "maybe 4?"),
item2 = c("29", "thirty", "30"),
item3 = c("twentyyyy", "ten I think", "dunno"),
item4 = c("your behind", NA, "richer"),
codingscheme = "categ",
na.rm = TRUE)
# Compute the sum score for CRT4 responses based on binary-coded correctness:
reflectR::CRT4(
item1 = c("four", "nineeee", "maybe 4?"),
item2 = c("29", "thirty", "30"),
item3 = c("twentyyyy", "ten I think", "dunno"),
item4 = c("your behind", NA, "richer"),
codingscheme = "sum",
na.rm = FALSE)$crt_sum
Run the code above in your browser using DataLab