| ![]() |
From | Richard Williams <Richard.A.Williams.5@ND.edu> |
To | statalist@hsphsun2.harvard.edu |
Subject | Re: st: problems with e(sample) |
Date | Fri, 16 Jun 2006 18:21:40 -0500 |
At 04:22 PM 6/16/2006, Zurab Sajaia wrote:
Hi all,We might need to see a little more code here. Here is my version of myprogram.ado:
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".
© Copyright 1996–2025 StataCorp LLC | Terms of use | Privacy | Contact us | What's new | Site index |