Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

method_user and the example on the KBAL #62

Open
BERENZ opened this issue May 6, 2024 · 2 comments
Open

method_user and the example on the KBAL #62

BERENZ opened this issue May 6, 2024 · 2 comments

Comments

@BERENZ
Copy link

BERENZ commented May 6, 2024

The example for the KBAL includes the following lines

    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.

@ngreifer
Copy link
Owner

ngreifer commented May 6, 2024

Thank you so much, I'll make that change in the documentation!

@BERENZ
Copy link
Author

BERENZ commented May 6, 2024

You may also change devtools to remotes as it is now suggested way to install packages from GitHub and other repos.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants