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

Move "big problem" warning into matching routines #139

Open
markmfredrickson opened this issue Aug 15, 2017 · 1 comment
Open

Move "big problem" warning into matching routines #139

markmfredrickson opened this issue Aug 15, 2017 · 1 comment

Comments

@markmfredrickson
Copy link
Owner

Right now we warn people when they create big distance matrices. The problem is that this line

match_on(treatment ~ x1 + x2, data = mydata) + exactMatch(treatment ~ mypairs, data = mydata)

would give a waring even if the exact match pairs up treated and control units (i.e., the call to match_on can't know it is about to get added to an exact match).

By moving to the matching stage, the user would get the warning after all components of the match have been combined. On the other hand, it might be helpful to inform him/her earlier. Thoughts?

@benthestatistician
Copy link
Collaborator

wouldn't this hypothetical user's computer be happier if she instead did

match_on(treatment ~ x1 + x2, data = mydata, 
                  within=exactMatch(treatment ~ mypairs, data = mydata) 
                )

or the equivalent? I suspect so, and also that we should be steering users away from building big distances. I think that's why we chose to put warnings in the distance building functions.

Perhaps warnings in themselves aren't quite sufficient to make the point. Maybe they'd be better if they pointed to a short vignette on the topic of managing problem size...

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