Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Re:Forvalues not recognizing local macro


From   "P. Wilner Jeanty" <[email protected]>
To   [email protected]
Subject   st: Re:Forvalues not recognizing local macro
Date   Sat, 22 Mar 2008 16:19:04 -0400

On Sat, Mar 22, 2008 at 3:51 PM, Anjali Gupta <[email protected]> wrote:
> Hello,
>
> Thank you for the reply - however that didn't fix it.
>
> The code works fine if I take `covagrl' out of the forvalues loop.
>
> Anjali


Another problem is that in the local macro  `covagrl' you already have an <if
exp>, so you cannot have two of them (<if zboy == 0> and <if _mult_
== `j'>) for one command. That may be why when you remove `covagrl' the
program works fine. The problem is certainly not with the forvalues loop.
-- 


P. Wilner Jeanty, Post-doctoral researcher
Dept. of Agricultural, Environmental, and Development Economics
The Ohio State University
2120 Fyffe Road
Columbus, Ohio 43210
(614) 292-6382 (Office)
*
*   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/



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