[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
RE: st: Re: trickier subscript question
In my reply to you yesterday I made some suggestions.
One exposition linking a introduction to local macros
to one on -for*- is
How to face lists with fortitude. Stata Journal
2(2): 202-222 (2002)
A version of that is accessible at (e.g.)
A sequel to that is
Problems with lists. Stata Journal 3(2):
> Thank you for your help. Do you have any advice on where I
> could read up about macros?
> >i is a local macro (and must be referreed to as `i' when used in
> >expressions) , not a variable and you want j to be the same
> (after all, they
> >have nothing to do with observations, they are just counters).
> >local j=`i'-1
> >It would be worthwhile to read up about macros if you want to program
> >effectively or write complicated loops.
* For searches and help try: