I tried to add @33pedro wrote: there also seems to be a .0 in the frequency table which may need addressing Tried to address it. Not really working. Maybe because I do not know how to address .o in my dataset! data work.impo;
set work.import;
If GHQ12 = .0 then GHQ3 = 1;
else If .0 < GHQ12 < 3 then GHQ3 = 2;
else GHQ3 = 3;
run; Best regards,
... View more
Thank you so much, Pedro. Still, I have the same error. I checked GHQ12 and this is some units of this variable: I tried your code on the different data set, still, I have the exact same error.
... View more
I have GHQ12 which has 13 different cohorts. I need to make it a variable with only 3 categories. I used the following code: data work.sampsys1;
set work.sampSys;
If GHQ12 = 0 then GHQ3 = 1;
If GHQ12 > 0 and GHQ12 < 3 THEN GHQ3 = 2;
else GHQ3 = 3;
run; I have the following error: This is the frequency table for GHQ12: May you please help me? Thanks in advance,
... View more