|Date: ||Wed, 30 Nov 2011 09:57:34 -0500|
|Reply-To: ||Rick Wicklin <Rick.Wicklin@SAS.COM>|
|Sender: ||"SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>|
|From: ||Rick Wicklin <Rick.Wicklin@SAS.COM>|
|Subject: ||Re: SAS PROC for numeric coding? XXXX|
> Is there a SAS PROC out there that takes a multi-category discrete
> variable with character categories and converts it to a single numeric
> coded variable (not a set of dummy variables) with the character
> categories assigned as formats?
This was such an interesting question that I decided to blog about it:
There is an easy way to do this in SAS/IML that takes advantage of calling
PROC FORMAT from within the SAS/IML program.
Statistical programming blog: http://blogs.sas.com/content/iml