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

st: Functions in stata

From   "Zurab Sajaia" <>
To   <>
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:

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