<?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: display categorical parameter level in format in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/display-categorical-parameter-level-in-format/m-p/165917#M263724</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The levels of PROG will be displayed as their formatted values if PROG is associated with a format, either in your dataset (permanent association) or during the glm procedure run (temporary association). For example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;proc format;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;value lmh&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1 = 'low' &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2 = 'med' &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;3 = 'high';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;proc glm data=myData;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;format PROG lmh.;&amp;nbsp; /* Associate format with CLASS variable */&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;class PROG;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;model y = PROG / solution;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;run; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Apr 2014 01:57:50 GMT</pubDate>
    <dc:creator>PGStats</dc:creator>
    <dc:date>2014-04-03T01:57:50Z</dc:date>
    <item>
      <title>display categorical parameter level in format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/display-categorical-parameter-level-in-format/m-p/165915#M263722</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use proc glm to run multiple regression model, I wonder if it is possible to display the categorical parameter level in format in the output. For example, I have the following output after proc glm,&lt;/P&gt;&lt;P&gt;where PROG has three levels, 1, 2, 3 with format as 1 = 'low', 2 = 'med', 3 = 'high'. Is it possible to display 'low', 'med', 'high' instead of 1, 2, 3 in the output? Thank you very much!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Parameter Estimate Error t Value Pr &amp;gt; |t|&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Intercept 0.0510179965 B 0.18457670 0.28 0.7823&lt;/P&gt;&lt;P&gt;&amp;nbsp; PROG 1 -.4233591913 B 0.07772768 -5.45 &amp;lt;.0001&lt;/P&gt;&lt;P&gt;&amp;nbsp; PROG 2 -.1468757972 B 0.06539618 -2.25 0.0251&lt;/P&gt;&lt;P&gt;&amp;nbsp; PROG 3 0.0000000000 B . . .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Apr 2014 23:49:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/display-categorical-parameter-level-in-format/m-p/165915#M263722</guid>
      <dc:creator>swimmer</dc:creator>
      <dc:date>2014-04-02T23:49:49Z</dc:date>
    </item>
    <item>
      <title>Re: display categorical parameter level in format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/display-categorical-parameter-level-in-format/m-p/165916#M263723</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What does your code look like? Have you tried the standard class/format statements?&lt;/P&gt;&lt;P&gt;proc format;&lt;/P&gt;&lt;P&gt;value 1 = 'low'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2 = 'med'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3='high';&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc glm data=have;&lt;/P&gt;&lt;P&gt;class prog;&lt;/P&gt;&lt;P&gt;model y=prog;&lt;/P&gt;&lt;P&gt;format prog prog_fmt.;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Apr 2014 01:44:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/display-categorical-parameter-level-in-format/m-p/165916#M263723</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2014-04-03T01:44:15Z</dc:date>
    </item>
    <item>
      <title>Re: display categorical parameter level in format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/display-categorical-parameter-level-in-format/m-p/165917#M263724</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The levels of PROG will be displayed as their formatted values if PROG is associated with a format, either in your dataset (permanent association) or during the glm procedure run (temporary association). For example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;proc format;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;value lmh&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1 = 'low' &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2 = 'med' &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;3 = 'high';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;proc glm data=myData;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;format PROG lmh.;&amp;nbsp; /* Associate format with CLASS variable */&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;class PROG;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;model y = PROG / solution;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;run; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Apr 2014 01:57:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/display-categorical-parameter-level-in-format/m-p/165917#M263724</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2014-04-03T01:57:50Z</dc:date>
    </item>
  </channel>
</rss>

