cem
cem copied to clipboard
att fails with tibbles
When using a tibble, att
fails with the error Error in
[.data.frame(TEi, idt) : undefined columns selected
.
This is occurring because of line 374 (using the GitHub formatting), TEi <- data[,response]-prd
. For a regular data.frame, this returns a vector; for a tibble, it returns a tibble. Although I haven't tested it, I suspect this will also create an error with data.tables.
To fix this, that line might be replaced with TEi <- data[[response]] - prod
.
Let me know if I can help, and sorry to inundate you with bug reports.