From: "Nick Cox" <[email protected]>
Reply-To: [email protected]
To: <[email protected]>
Subject: RE: st: RE: indirect evaluation of variables
Date: Mon, 31 Mar 2003 13:31:26 +0100
b. water
>
> tried to run your macro:
>
> . gen blob = .
> (4 missing values generated)
>
> . forval i = 1 / `= _N' {
> 2. replace blob = bl`= `bleen'[`i']' in `i'
> 3. }
> bl1 not found
> r(111);
>
> end of do-file
> r(111);
>
> but that was the result.
>
> however, gen blob = cond(bleen == "ing", bling, blam) worked.
>
> quite curious as to why the macro did not work but i am ok with the
> alternative.
This works for me. Perhaps you miscopied Bill Rising's
"data".
Nick
[email protected]
*
* 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/