# Automated scoring for itaCRTtwo responses using the categorical coding scheme:
reflectR::itaCRTtwo(
item1 = c("al primo", "secondo", "1", NA),
item2 = c("7", "non so", "sette", "otto"),
item3 = c("pprimo", "carlo", "CARLOO", "si chiama boh"),
item4 = c("nulla", "27 metri cubi", "mille", "zero"),
codingscheme = "categ",
na.rm = TRUE)
# Compute the sum score for itaCRTtwo responses based on binary-coded correctness:
reflectR::itaCRTtwo(
item1 = c("al primo", "secondo", "1", NA),
item2 = c("7", "non so", "sette", "otto"),
item3 = c("pprimo", "carlo", "CARLOO", "si chiama boh"),
item4 = c("nulla", "27 metri cubi", "mille", "zero"),
codingscheme = "sum",
na.rm = FALSE)$crt_sum
Run the code above in your browser using DataLab