Hi all,
I've written a simple byable program. The program works as expected but I'm
unable to store all the results in one data file (one row for each bycase,
one variable for each byvar + results)
program testiia, sortpreserve byable(recall)
markesample touse
regress msharex msharea,reobut
lincom _cons+msharea,level(99)
end
To save : _cons msharea & all lincom results
By phi_brd pdmbrd phi_mag pdmmag, sort : testiia
I'd like to have a data set with the following variables
phi_brd pdmbrd phi_mag pdmmag _cons msharea ms_cons p_ms_cons low99ms_cons
upp99ms_cons
TiA
Naji
*
* 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/