[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
RE: st: Using forval when one variable is not incremented
Philippe van Kerm answered Deborah Garvey:
> Here is a suggestion. See Nick Cox's columns in the Stata
> Journal for more
> on this and similar issues.
> The trick is to initialise a local macro containing the
> list of cpi's, and
> access each of them iteratively in the loop using a "word #
> of" macro
> extended function.
> ** initialise the list of cpis separated by blanks;
> loc cpis "0.aaaa 0.bbbbb ... 0.887788779 ...";
> loc j 1;
Thanks for the plug. The most pertinent specific
Problems with lists. Stata Journal 3(2): 185-202 (2003)
P.S. my guess is that CPI means "Consumer Price Index".
I am impressed that economists can now measure this to
a precision of 1 part in a billion.
* For searches and help try: