Open BERENZ opened 3 months ago
The example for the KBAL includes the following lines
KBAL
if (is_not_null(focal)) treat <- as.numeric(treat == focal) else stop("`estimand` must be \"ATT\" or \"ATC\".", call. = FALSE)
This results in an error message, as the 'is_not_null' function is not exported. Changing it to WeightIt:::is_not_null solves the problem.
WeightIt:::is_not_null
Thank you so much, I'll make that change in the documentation!
You may also change devtools to remotes as it is now suggested way to install packages from GitHub and other repos.
devtools
remotes
The example for the
KBAL
includes the following linesThis results in an error message, as the 'is_not_null' function is not exported. Changing it to
WeightIt:::is_not_null
solves the problem.