Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Stata9.1 : saving results from a byable program


From   Naji <nassar@noos.fr>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: Stata9.1 : saving results from a byable program
Date   Sat, 08 Oct 2005 09:00:14 +0200

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/



© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index