<?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: printing estimates for categorical variables in proc glm in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/printing-estimates-for-categorical-variables-in-proc-glm/m-p/580116#M164758</link>
    <description>&lt;P&gt;That's because you also are estimating an intercept term. In a simple model with a single two level categorical predictor, the estimated mean value for the reference level (by default I believe this corresponds to the largest value of the categorical variable) is the value of the intercept term.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There should be an option to run the model without an intercept term. Something like /noint on the model statement or something like that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You also should be able to get predicted means, by the values of all class variables, by using a MEANS or LSMEANS statement. Look into that.&lt;/P&gt;</description>
    <pubDate>Fri, 09 Aug 2019 13:27:13 GMT</pubDate>
    <dc:creator>DWilson</dc:creator>
    <dc:date>2019-08-09T13:27:13Z</dc:date>
    <item>
      <title>printing estimates for categorical variables in proc glm</title>
      <link>https://communities.sas.com/t5/SAS-Programming/printing-estimates-for-categorical-variables-in-proc-glm/m-p/580086#M164749</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"&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).&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 / solution;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Aug 2019 08:26:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/printing-estimates-for-categorical-variables-in-proc-glm/m-p/580086#M164749</guid>
      <dc:creator>hwkim286</dc:creator>
      <dc:date>2019-08-09T08:26:58Z</dc:date>
    </item>
    <item>
      <title>Re: printing estimates for categorical variables in proc glm</title>
      <link>https://communities.sas.com/t5/SAS-Programming/printing-estimates-for-categorical-variables-in-proc-glm/m-p/580116#M164758</link>
      <description>&lt;P&gt;That's because you also are estimating an intercept term. In a simple model with a single two level categorical predictor, the estimated mean value for the reference level (by default I believe this corresponds to the largest value of the categorical variable) is the value of the intercept term.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There should be an option to run the model without an intercept term. Something like /noint on the model statement or something like that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You also should be able to get predicted means, by the values of all class variables, by using a MEANS or LSMEANS statement. Look into that.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Aug 2019 13:27:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/printing-estimates-for-categorical-variables-in-proc-glm/m-p/580116#M164758</guid>
      <dc:creator>DWilson</dc:creator>
      <dc:date>2019-08-09T13:27:13Z</dc:date>
    </item>
    <item>
      <title>Re: printing estimates for categorical variables in proc glm</title>
      <link>https://communities.sas.com/t5/SAS-Programming/printing-estimates-for-categorical-variables-in-proc-glm/m-p/580444#M164890</link>
      <description>&lt;P&gt;I have multiple class variables. The noint gave me all the estimates for the first one but the others are still missing the estimates for the last output.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Aug 2019 01:38:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/printing-estimates-for-categorical-variables-in-proc-glm/m-p/580444#M164890</guid>
      <dc:creator>hwkim286</dc:creator>
      <dc:date>2019-08-12T01:38:24Z</dc:date>
    </item>
  </channel>
</rss>

