I am working in some code development related to clinical study. I have multiple visits, like baseline, week 01, and so on. To avoid the use of multiple IF-ELSE statements for assigning numeric values to these visits, I just creating formats using format procedure.
proc format;
value _vis $ 'baseline'='1'
'week01'='2'
'week02'='3' ;
run;
But I am looking for is like baseline having a value 1(numeric) not character. Is there any way out for this problem. Please help.