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.
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
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.