Dear all,
Can anybody kindly point out why the following code is not working?
forvalues n=1989 1991 1993 1997 2000 {
replace waglevl_f`n' = . if waglevl_f`n'<0
replace waglevl_m`n' = . if waglevl_m`n'<0
}
I want to recode all negative values in waglevl_fX and waglevl_mX
where X=(1989, 1991, 1993, 1997, 2000) into missing. But I got the
error message "invalid syntax". Thanks!
Best,
Shige
*
* 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/