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

st: RE: Functions in stata

From   "Nick Cox" <>
To   <>
Subject   st: RE: Functions in stata
Date   Fri, 19 Dec 2003 16:19:44 -0000

See [U] 21.10 Saving results. 


Zurab Sajaia
> I'm trying to find out how create some kind of function in 
> stata. After any
> estimation command  (regress for example)
> eret list gives functions: e(sample). If I write
>  gen a=e(sample)
> and if we specified IF and/or IN options in regress, a=1 
> for those in
> subsample and 0 otherwise. So, e(sample) is a function but 
> how can I return other functions from my program?

*   For searches and help try:

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