Arngrim Hunnes
>
> The following code works just fine:
>
> foreach var of local vlist{;
> display as text "`var'";
> count if `var' >= .;
> };
>
> My problem is that I want to display all this on one line.
> But if I use
>
> display as text "`var'" count if `var' > = .;
>
> it does not work!
>
> So my question is: how to I force Stata do display my
> information on one
> line?
One solution in this case:
foreach var of local vlist {
count if `var' >= .
display as text "`var' " `r(N)'
}
Also check out the _c feature of -display-.
This code looks like a special case of -nmissing-
(STB-49, STB-60).
Nick
[email protected]
*
* 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/