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 <>
To   <>
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)

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


*   For searches and help try:

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