Hi,
I've created dummy categories (outside of SAS) for a single variable. I now need to "define" these categories in SAS and create a new data set that contains them. My thoughts are to create a new format using a PROC FORMAT and VALUE statement, then use a PROC FREQ, TABLES, and FORMAT statement save to a file.
I'm extremely extremely new to SAS and data mining as a whole but based on past assignments would think the two commands would look something like this (values in quotes are what I established as dummy variables):
PROC FORMAT library=library;
VALUE vage
LOW – 17 = ‘0001’
18-19 = ’0010’
20-21=’0100’;
Run;
.........
PROC FREQ data=save.train;
TABLES vage;
FORMAT vage vage.;
Run;
Any assistance would be greatly appreciated.
Regards,