This site uses different types of cookies, including analytics and functional cookies (its own and from other sites). To change your cookie settings or find out more, click here. If you continue browsing our website, you accept these cookies.
11-14-2019 11:22 AM - edited 08-03-2021 09:55 AM
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
Additional Resources
I had a similar problem that was solved by removing the null values from the numerical measure used to match control units to treatment units.