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

st: Functions in stata


From   "Zurab Sajaia" <[email protected]>
To   <[email protected]>
Subject   st: Functions in stata
Date   Fri, 19 Dec 2003 10:59:52 -0500

Dear all,

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?

Thanks for your advice,
Zurab Sajaia

*
*   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