Hi, I want to be able, in a scripted formula, to assign a text string to column depending onthe values of another column.
For instance:
A B
1 Low
2 Low
3 Low
4 Medium
5 Medium
6 Medium
7 High
8 High
9 High
10 High
How does the formula lok for this? If(:A<=3,"Low",:A>=3 and :A<7,"Medium",:A>=7,"High") does not work.
I Base SAS there is a command, select(); when();when(); ; ; otherwise;end; It is the equivalent of this I am looking for.
Regards
Poul Ravn Sørensen