ifelse2 ssc result with array