Hi Sorry about that..
The code which you posted works exactly fine...
Secondly, I was trying to run it by replacing
delivery_premature = (. < labor < 37); with what you explained.......
if (. < delivery < 37) then delivery_premature = 1;
else delivery_premature = 2; /*did u put this 2 here by mistake........i think it should be 0 because the format has only 1 and 0 and no 2*/
Please correct me
Yes, you are correct it should be 0 (to allow for my format definition to work), or if you prefer to be 2, then you change
proc format;
value yesno 1 = "Premature" 2 = "Not premature"
;
quit;
Either 2 or 0, whatever you prefer.
Good.
Now, do you have your data set working?
Thanks for your time and reply.
I am not working on this.This was posted originally by another person. I am learning SAS and techniques involved....
Thanks
Right :smileylaugh:
Ok, good day!
Also shouldnt the highlighted "DELIVERY " be replaced by LABOR
Secondly, I was trying to run it by replacing
delivery_premature = (. < labor < 37); with what you explained.......
if (. < delivery < 37) then delivery_premature = 1;
else delivery_premature = 2; /*did u put this 2 here by mistake........i think it should be 0 because the format has only 1 and 0 and no 2*/
Please correct me
yes, correct.
I got the variables mixed up.
Available on demand!
Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.
Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.
Find more tutorials on the SAS Users YouTube channel.
Select SAS Training centers are offering in-person courses. View upcoming courses for: