The -syntax- problem is that you don't give -yearval()-
a default.
Apart from that, this won't do what you want. Lines like
replace P0 = $S_FGT0
-replace- in all observations. The -replace- must have
an -if- condition, as my example showed.
Nick
[email protected]
[email protected]
> My goals is to compute poverty rates and use
> them later in other calculus (growth and sectoral
> decompositions).
>
> But I now encounter a problem with syntax command.
>
*
* 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/