<?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 printing estimates for categorical variables for all outputs in proc glm in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/printing-estimates-for-categorical-variables-for-all-outputs-in/m-p/580445#M164891</link>
    <description>&lt;P&gt;Hello all.&lt;/P&gt;&lt;P&gt;I've been trying to run proc glm using categorical variables like gender and education level.&lt;/P&gt;&lt;P&gt;For some reason, the last outcome for each categorical variable are not printing. (0 for estimate and missing for others)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/kb/22/590.html" target="_blank" rel="nofollow noopener noreferrer"&gt;http://support.sas.com/kb/22/590.html&lt;/A&gt;&amp;nbsp;The first two tables in this link show the same thing for type webster and block 3.&lt;/P&gt;&lt;P&gt;Is there a way to code to make sure that all the outcome for categorical variables show? I know for sure that there are values through proc freq. For instance, when using gender as a categorical variable, I am getting estimates for male but not for female (male = 1 and female = 2). For education level I am getting estimates for low but not high (low = 1 and high = 2).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My code is something like this. (only variable names are different)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc glm data = final_data;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; class ID gender;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; model exercise = gender education_level/ noint solution;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I've tried noint and got the estimates for the first class variable. However the second class variable is still not showing an output value for the estimate.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;</description>
    <pubDate>Mon, 12 Aug 2019 01:51:48 GMT</pubDate>
    <dc:creator>hwkim286</dc:creator>
    <dc:date>2019-08-12T01:51:48Z</dc:date>
    <item>
      <title>printing estimates for categorical variables for all outputs in proc glm</title>
      <link>https://communities.sas.com/t5/SAS-Programming/printing-estimates-for-categorical-variables-for-all-outputs-in/m-p/580445#M164891</link>
      <description>&lt;P&gt;Hello all.&lt;/P&gt;&lt;P&gt;I've been trying to run proc glm using categorical variables like gender and education level.&lt;/P&gt;&lt;P&gt;For some reason, the last outcome for each categorical variable are not printing. (0 for estimate and missing for others)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/kb/22/590.html" target="_blank" rel="nofollow noopener noreferrer"&gt;http://support.sas.com/kb/22/590.html&lt;/A&gt;&amp;nbsp;The first two tables in this link show the same thing for type webster and block 3.&lt;/P&gt;&lt;P&gt;Is there a way to code to make sure that all the outcome for categorical variables show? I know for sure that there are values through proc freq. For instance, when using gender as a categorical variable, I am getting estimates for male but not for female (male = 1 and female = 2). For education level I am getting estimates for low but not high (low = 1 and high = 2).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My code is something like this. (only variable names are different)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc glm data = final_data;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; class ID gender;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; model exercise = gender education_level/ noint solution;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I've tried noint and got the estimates for the first class variable. However the second class variable is still not showing an output value for the estimate.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Aug 2019 01:51:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/printing-estimates-for-categorical-variables-for-all-outputs-in/m-p/580445#M164891</guid>
      <dc:creator>hwkim286</dc:creator>
      <dc:date>2019-08-12T01:51:48Z</dc:date>
    </item>
    <item>
      <title>Re: printing estimates for categorical variables for all outputs in proc glm</title>
      <link>https://communities.sas.com/t5/SAS-Programming/printing-estimates-for-categorical-variables-for-all-outputs-in/m-p/580450#M164894</link>
      <description>&lt;P&gt;This is called &lt;EM&gt;Reference&lt;/EM&gt; parameterization. The last level from each class effect is fixed at zero and the other levels are estimated as offsets from that reference. So zero really is the estimate for that last class level.&lt;/P&gt;
&lt;P&gt;You would probably find LSMEANS more informative. Add&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;LSMEANS gender;&lt;/P&gt;
&lt;P&gt;LSMEANS education_level;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;say, to your proc glm code and see if those results are more interesting to you. There are also plenty of options that can be added to the LSMEANS statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Aug 2019 03:36:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/printing-estimates-for-categorical-variables-for-all-outputs-in/m-p/580450#M164894</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2019-08-12T03:36:23Z</dc:date>
    </item>
  </channel>
</rss>

