What would the code be if I want to match on two continuous variables?
Suppose for a given M&A acquirer we have several potential matches. Say one of the matches agrees exactly with the acquirer on Probability but is very different on leverage deficit. And suppose another match agrees exactly on leverage deficit but is appreciably different on Probability. And suppose there is a third potential match that is in good, but imperfect, agreement with the M&A acquirer on both Probability and leverage deficit. You have to specify a rule for which to select in this situation (which, in the normal course of events will happen frequently).
It will only require one use of -joinby- (or, using a more modern approach, -rangejoin- or -runby-), but the details depend on how you handle the situation I describe in the preceding paragraph. You need a specific rule or set of rules for making those decisions, and those rules have to be implemented in the code.
So the bottom line is: finish spelling out your question, and then there will be an answer. At the moment the question is incomplete and unanswerable.
Comment