for loop windsorising
Posted: Fri Sep 16, 2011 7:54 am
Hi there,
What is my error in the following for loop?
I get the error message "Can not assign string expression to numeric variable". How do I assign the values of the series?
Thanks, so much!
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))