LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (November 2011, week 5)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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: http://blogs.sas.com/content/iml/2011/11/30/recoding-a-character-variable- as-numeric/

There is an easy way to do this in SAS/IML that takes advantage of calling PROC FORMAT from within the SAS/IML program.

Rick Wicklin Statistical programming blog: http://blogs.sas.com/content/iml


Back to: Top of message | Previous page | Main SAS-L page