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

st: RE: Functions in stata


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

See [U] 21.10 Saving results. 

Nick 
[email protected] 

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:
*   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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index