What is my error in the following for loop?
Code: Select all
for %y db_09 sg_09 hr_09
series w(%y) = @recode(%y>@quantile(%y,.995),@quantile(%y,.995),@recode(%y<@quantile(%y,.005),@quantile(%y,.005),%y))
nextCode: Select all
series wdb_09 = @recode(db_09>@quantile(db_09,.995),@quantile(db_09,.995),@recode(db_09<@quantile(db_09,.005),@quantile(db_09,.005),db_09)) 