Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
From | Christopher F Baum <baum@bc.edu> |
To | <statalist@hsphsun2.harvard.edu> |
Subject | re: RE: st: Splitting a dataset efficiently/run regression repeatedly in subsets |
Date | Mon, 15 Nov 2010 11:39:16 -0500 |
<> Sven said The statsby command is actually much quicker (and thanks for the advice). However, I also need to predict after each regression and apparently this is not possible with statsby. Not true. Statsby can execute any single command, and you can easily create a 'wrapper' command that does both the regress and the predict. See my interchange with Degas Wright re 'rolling' on Statalist earlier this month, and the example myregress.ado in the ITSP sample programs. That command does a lincom after regress, but that is very similar to a predict after regress. Kit Kit Baum | Boston College Economics and DIW Berlin | http://ideas.repec.org/e/pba1.html An Introduction to Stata Programming | http://www.stata-press.com/books/isp.html An Introduction to Modern Econometrics Using Stata | http://www.stata-press.com/books/imeus.html * * For searches and help try: * http://www.stata.com/help.cgi?search * http://www.stata.com/support/statalist/faq * http://www.ats.ucla.edu/stat/stata/