AB Controls: Treatments not included in the data
When running the AB Controls tool, you may come across the following series of errors:
Error: AB Controls (54): AB Controls: Error in get.knnx(as.matrix(the.data[, names(the.data)[sapply(the.data, :
Error: AB Controls (54): AB Controls: Execution halted
Error: AB Controls (54): Tool #141: Error in if (uniq.cntrls) { : missing value where TRUE/FALSE needed
Error: AB Controls (54): Tool #229: Error in if (substr(treat.units[1], 1, 1) == "X") gsub("X", "", treat.units) :
Environment
Cause
Typically these errors occur when the records input into the T (Treatment) input are not contained in the D (Data) input.
Solution
- Ensure that all records input into the Treatment anchor are contained in the Data input.
- Records must match on the unit identifier specified in the AB Controls tool configuration
Additional Resources