It is occasionally necessary to alter or add a scoring rule, e.g. in case of a key error. This function offers the possibility to do so and also allows you to add new items to your project
touch_rules(db, rules)
If the scoring rules pass a sanity check, a small summary of changes is printed and nothing is returned. Otherwise this function returns a data frame listing the problems found, with 4 columns:
id of the problematic item
if TRUE, the item has only one distinct score
if TRUE, the item contains two or more identical response categories
if TRUE, the minimum score of the item was not 0
The rules should contain all rules that you want to change or add. This means that in case of a key error in a single multiple choice question, you typically have to change two rules.