[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
st: problems with e(sample)
Hi all,
I ecountered a problem with disapearing e(sample) and couldn't find what can
be wrong:
I have an eclass program, which sets leaves some ereturn parameters as well
as setting e(sample)
program myprogram, eclass
...
ereturn post, esample(`touse')
ereturn local cmd="myprogram"
...
count if e(sample)
end // myprogram
When I run the program -count- within the program displays correct number
but if I write
.count if e(sample) from command line, it returns 0. Somehow e(sample) gets
cleared although other parameters, for example e(cmd) still contains
"myprogram".
Is it Friday-5:30PM problem or I'm doing something wrong?
Thanks in advance,
Zurab
*
* 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/