Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

RE: st: Multiple tests

From   Ernest Berkhout <[email protected]>
To   [email protected]
Subject   RE: st: Multiple tests
Date   Fri, 04 Apr 2003 11:55:38 +0200

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
"To an economist, real life is a special case"

*   For searches and help try:

© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index