<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: data numeric, but variable actually categorical in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/data-numeric-but-variable-actually-categorical/m-p/58031#M16203</link>
    <description>Jonas,&lt;BR /&gt;
&lt;BR /&gt;
Take a look at&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="http://support.sas.com/forums/thread.jspa?messageID=27609毙" target="_blank"&gt;http://support.sas.com/forums/thread.jspa?messageID=27609毙&lt;/A&gt;</description>
    <pubDate>Fri, 30 Jul 2010 19:03:34 GMT</pubDate>
    <dc:creator>RickM</dc:creator>
    <dc:date>2010-07-30T19:03:34Z</dc:date>
    <item>
      <title>data numeric, but variable actually categorical</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/data-numeric-but-variable-actually-categorical/m-p/58028#M16200</link>
      <description>Hello,&lt;BR /&gt;
I'm using proc logistic and have several categorical variables.  The data, though, is numeric, some with corresponding formats, others binary, etc.  Is there an easy way to get proc logistic to recognize the variables as categorical?  I tried to list them under class, but this didn't work of course since the data is numeric.  Do i simply have to reformat the info?  How do i do this in an efficient manner?</description>
      <pubDate>Fri, 30 Jul 2010 04:11:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/data-numeric-but-variable-actually-categorical/m-p/58028#M16200</guid>
      <dc:creator>CharlesR</dc:creator>
      <dc:date>2010-07-30T04:11:07Z</dc:date>
    </item>
    <item>
      <title>Re: data numeric, but variable actually categorical</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/data-numeric-but-variable-actually-categorical/m-p/58029#M16201</link>
      <description>CLASS works with numeric or character.  However, if you want to group numeric variables into grouped classes you will need to generate a user format.  Here is an example:&lt;BR /&gt;
&lt;BR /&gt;
PROC FORMAT;&lt;BR /&gt;
  value classit  low-25 = '-25'&lt;BR /&gt;
                      25&amp;lt;-60 = '25 &amp;lt;- 60'&lt;BR /&gt;
                      60 - high = '60+'&lt;BR /&gt;
  ;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
proc logistic data=yourdata descending;&lt;BR /&gt;
  class num_class;&lt;BR /&gt;
  format num_class clasit.;&lt;BR /&gt;
  model whatever = other_numeric | class @ 2;&lt;BR /&gt;
run;

Message was edited by: jonas.bilenas</description>
      <pubDate>Fri, 30 Jul 2010 18:59:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/data-numeric-but-variable-actually-categorical/m-p/58029#M16201</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-07-30T18:59:07Z</dc:date>
    </item>
    <item>
      <title>Re: data numeric, but variable actually categorical</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/data-numeric-but-variable-actually-categorical/m-p/58030#M16202</link>
      <description>Hmm,  My response looks truncated.  Is there a word limit here?</description>
      <pubDate>Fri, 30 Jul 2010 19:01:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/data-numeric-but-variable-actually-categorical/m-p/58030#M16202</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-07-30T19:01:04Z</dc:date>
    </item>
    <item>
      <title>Re: data numeric, but variable actually categorical</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/data-numeric-but-variable-actually-categorical/m-p/58031#M16203</link>
      <description>Jonas,&lt;BR /&gt;
&lt;BR /&gt;
Take a look at&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="http://support.sas.com/forums/thread.jspa?messageID=27609毙" target="_blank"&gt;http://support.sas.com/forums/thread.jspa?messageID=27609毙&lt;/A&gt;</description>
      <pubDate>Fri, 30 Jul 2010 19:03:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/data-numeric-but-variable-actually-categorical/m-p/58031#M16203</guid>
      <dc:creator>RickM</dc:creator>
      <dc:date>2010-07-30T19:03:34Z</dc:date>
    </item>
    <item>
      <title>Re: data numeric, but variable actually categorical</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/data-numeric-but-variable-actually-categorical/m-p/58032#M16204</link>
      <description>Hi:&lt;BR /&gt;
  No, no word limit, but special characters like &amp;lt; and &amp;gt; sometimes confuse the forum posting editor...because it uses HTML tags and &amp;lt; and &amp;gt; are looking like HTML and so sometimes pieces of your post get "truncated" while the editor looks for the end of a tag.&lt;BR /&gt;
 &lt;BR /&gt;
  Here's the specifics:&lt;BR /&gt;
&lt;A href="http://support.sas.com/forums/thread.jspa?messageID=27609毙" target="_blank"&gt;http://support.sas.com/forums/thread.jspa?messageID=27609毙&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
Use the [pre] and [/pre] tags around your code and output in order to maintain indenting and spacing. And, also, use &amp;amp;lt; for &amp;lt; symbol and &amp;amp;gt; for &amp;gt; symbol.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Fri, 30 Jul 2010 20:08:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/data-numeric-but-variable-actually-categorical/m-p/58032#M16204</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2010-07-30T20:08:54Z</dc:date>
    </item>
    <item>
      <title>Re: data numeric, but variable actually categorical</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/data-numeric-but-variable-actually-categorical/m-p/58033#M16205</link>
      <description>Great.  Thanks all!  I think i was forgetting to put my values in single quotes.  Silly rabbit . . .</description>
      <pubDate>Sat, 31 Jul 2010 02:45:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/data-numeric-but-variable-actually-categorical/m-p/58033#M16205</guid>
      <dc:creator>CharlesR</dc:creator>
      <dc:date>2010-07-31T02:45:17Z</dc:date>
    </item>
  </channel>
</rss>

