Hi, I am trying to find mean by group of my data. I have one indicator variable (named CR) taking value of either 0 or 1. I have another variable of deciles (named decile) taking value from 0 to 9. I am trying to find out the mean of CR within each decile. I did the following: proc means data= DATA. CR mean; var CR; by decile; run; quit; Can you please let me know what am I doing wrong since I am not getting the desired output? Thank you.
... View more