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

Problem with the MatchBy function #2

Open
tejendrapsingh opened this issue Mar 7, 2020 · 3 comments
Open

Problem with the MatchBy function #2

tejendrapsingh opened this issue Mar 7, 2020 · 3 comments

Comments

@tejendrapsingh
Copy link

tejendrapsingh commented Mar 7, 2020

Looks like the GenMatch function called by the Matchby function has some issues. I am posting the code and the associated error below. Thanks.

Code:
set.seed(12345)
rr <- Matching::Matchby(#Y = Y,
Tr = Tr, X = my.X, by = by1, M = 1, replace = TRUE, estimand = "ATT", ties = FALSE)

Error Message:
60 of 5106 groups
Error in if (Sig.X[k, 1] < tolerance) Sig.X[k, 1] <- tolerance : missing value where TRUE/FALSE needed In addition: Warning message: In sqrt(max(tolerance, sum(X[, k] * X[, k] * weights))/weights.sum - : NaNs produced

@cocoxxo
Copy link

cocoxxo commented Jul 20, 2022

Hi did you fix this issue? I ran into the exact error with you and I have no idea how to solve this, too.

@JasjeetSekhon
Copy link
Owner

JasjeetSekhon commented Jul 20, 2022 via email

@cocoxxo
Copy link

cocoxxo commented Jul 20, 2022 via email

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

3 participants