I would like to create two variables , one numeric and one character, according to ages. For example , for age<=8, I would like to assign 10 to grade and median to growth.
However, I only know how to create one variable for one if statement, which is shown below. I want to ask if there is more efficient way to do this.
data age;
set age;
grade = .;
growth = .;
if (age<=8) then grade=10;
if (age<=8) then growth="median";
run;