I am attempting to replace observations from one series with another. So, if and observation for X > Y, make X = Y. However, the following code is throwing an error:
Code: Select all
%ne = "CT MA ME NH NJ NY PA RI VT"
%nc = "IA IL IN KS MI MN MO ND NE OH SD WI"
%so = "AL AR DC DE FL GA KY LA MD MS NC OK SC TN TX VA WV"
%wt = "AK AZ CA CO HI ID MT NM NV OR UT WA WY"
for %r NE NC SO WT
for %s {%{%r}}
%tf = BPPRIV_S{%s}
%sf = BP1FH_S{%s}
{%sf} = @recode({%sf} > {%tf}, {%tf}, {%sf})
next
nextAny help would be greatly appreciated!
