Two answers:
1. Don't do this. Cycle over a series of
graphs or look at the moments (or L-moments)
directly. Much more informative. -moments-
and -lmoments-, for example, are on SSC.
The answers -sktest- gives are rarely
the answers you really want. There is
lots on the grounds for this outrageous
statement in the archives.
2. -foreach- and -levels-. There is an
FAQ on this.
http://www.stata.com/support/faqs/data/foreach.html
Nick
[email protected]
M. Douglas Berg
> My dataset consists of data grouped into 48 industry
> classifications. I
> have a string variable with an industry label for each observation.
> Within each industry I would like to test prices for normality using
> sktest. But sktest is not byable. Is there another way to achieve my
> objective?
>
*
* 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/