Data defines the model by dint of genetic programming, producing the best decile table.


SAS Code for Converting a Num Variable to Char, and Back
Bruce Ratner, PhD
Live chat by Boldchat
Live chat by Boldchat


num_2_char


data
nums;
input @1 nums 3.;
cards;
123
234
;
run;
proc print data=num;
title1' num ';
run;

data num_2_char;
set nums;
char=put(nums, 3. );
run;
proc
print data=num_2_char;
title1' num_2_char ';
run;
proc contents;
run;

data char_2_num;
set num_2_char;
num_var=input(substr(char,1),3.);
run;
proc print data=char_2_num;
title1 ' char_2_num ';
run;
proc contents;
run;

For more information about this article, call Bruce Ratner at 516.791.3544 or 1 800 DM STAT-1; or e-mail at br@dmstat1.com.
Sign-up for a free GenIQ webcast: Click here.