Given a recent thread on Statalist about how slow statsby can be when
working with large panel datasets and some private email interest in some
code I had written to do faster bygroup regressions, I took the plunge and
re-worked the official Stata -statsby- command so that it uses the
faster -in- method of identifying by groups instead of the -if- method.
This approach provides all of the flexibility of statsby, but with a 6x-10x
speed improvement on larger panel datasets. The new ado -statsbyfast- is
now posted on SSC for downloading. statsbyfast is statsby with fewer than
10 lines of changed code and it works identically as far as I can tell.
Michael Blasnik
[email protected]
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/