Hi all,i need help i am totally new to sas and still trying to figure how things work!
i am trying to create a new variable with multiple observation but i keep getting syntax error.
here is what i am trying to solve.
Thanks
a new variable called LetterGrade that reports an A if the GPA is
3.5 or higher, a B is the GPA is greater than equal to 2.5 but less than 3.5, a
C if the GPA is greater than or equal to 1.5 but less than 2.5, a D ifthe GPA is
greater than or equal 0.5 but less than 1.5, and an F if the GP is below 0.5
data merged.lettergrade;
set merged.merged;
lettergrade=(A=(gpa>3.5) B=(gpa 2.5>=3.5) C=(gpa 1.5>=2.5) D=(gpa 0.5>=1.5) F=(gpa<0.5));
run;
proc print data=merged.lettergrade;
run;