Hi! Given a dataset sorted by PID (ID of each participant, N=77) with several continuous variables. I want to obtain which are the observations (PID) with values > 2 SD from the mean. I am working with data in a temporary dataset called -- cortical_stroke_complete2 The variable of interest is : PCh_CONTRA_entorhinal_tck This is the code that I have been trying without success, I tried different variables and always obtained the same PID. proc sql noprint; select mean(PCh_CONTRA_entorhinal_tck) into : mean from cortical_stroke_complete2; select std(PCh_CONTRA_entorhinal_tck) into :std from cortical_stroke_complete2; quit; data cortical_stroke_complete2; set cortical_stroke_complete2; where PCh_CONTRA_entorhinal_tck >&mean+2*&std ; proc print;run; Basic SAS programmer. Thank you so much!
... View more