sergiocorreia / ftools

Fast Stata commands for large datasets
MIT License
134 stars 41 forks source link

Support many to many join #34

Closed NilsJPWerner closed 3 years ago

NilsJPWerner commented 3 years ago

Would it be possible to add many to many functionality in the join command that could mimic the joinby command?

sergiocorreia commented 3 years ago

Although that's definitely an interesting addition, it's low on my to-do list; too many pending tasks (policy+coauthors) so no idea when I would be able to implement it.

One possibility would be to just partition the data and then run joinby (should be much faster), and another is to code joinby in Mata by combining ftool internals with Mata's kronecker operator.