Nick Cox wrote:
Second, this won't work unless
spring crsgpa frstsem
is actually a varlist, and that doesn't seem guaranteed.
OK, sorry for the typo. But Nick, could you please elaborate on what you
mean with the above statement? Why is it not a varlist?
i = 0
foreach s of local suff {
if `i++' == 0 test avg`s' = delta`s'
else test avg`s' = delta`s', accum
}
Note how the incrementation of local macro i
is performed in place.
Wow, that's fancy! I'll look that up in the manual, thanks!
Ernest Berkhout
Stichting voor Economisch Onderzoek
Universiteit van Amsterdam
De SEO is verhuisd! Tegenwoordig ben ik bereikbaar op:
Kamer 3.08
Roetersstraat 29
1018 WB Amsterdam
tel.:+ 31 20 525 1630
fax:+ 31 20 525 1686
http://www.seo.nl
=================================
"To an economist, real life is a special case"
=================================
*
* 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/