<?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: Effect-coding in GLIMMIX in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Effect-coding-in-GLIMMIX/m-p/544119#M27231</link>
    <description>&lt;P&gt;RobertF,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Manual coding is nice if you have a reasonable number of categories.&amp;nbsp; My categorical variable is approaching 500 levels.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Another nice thing about DIFF=ANOM is that it gives you effects for each level of the predictor without the need to re-run the model with a different reference category to obtain the delta for that level.&lt;/P&gt;</description>
    <pubDate>Mon, 18 Mar 2019 22:43:54 GMT</pubDate>
    <dc:creator>Haris</dc:creator>
    <dc:date>2019-03-18T22:43:54Z</dc:date>
    <item>
      <title>Effect-coding in GLIMMIX</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Effect-coding-in-GLIMMIX/m-p/314936#M22082</link>
      <description>&lt;P&gt;Is there a way to switch the default dummy-coding of CLASS variables to effect-coding in PROC GLIMMIX?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My goal is to obtain tests for each level of a fixed class variable against sample average in &lt;SPAN&gt;PROC &lt;/SPAN&gt;GLIMMIX.&amp;nbsp; In &lt;SPAN&gt;PROC &lt;/SPAN&gt;LOGISTIC the CLASS statement has an option ‘PARAM=EFFECT’ to accomplish this.&amp;nbsp; There does not seem to be an equivalent for that in PROC GLIMMIX. &amp;nbsp;Am I missing something?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I can't change the way a CLASS variable is parameterized by GLIMMIX, what would you recommend for me to achieve my goal?&amp;nbsp;I know I could manually effect-code each level of my class variable in the source dataset and enter all of those effect-coded variables into the model.&amp;nbsp; I can also use a series of ESTIMATE statements to compute the desired targets by using dummy-code default.&amp;nbsp; Trouble is that my class variable has over 400 levels and both of the options above require a whole lot of coding. I have hard time believing that SAS took away PARAM=EFFECT option without an easy alternative.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you have any other suggestions?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Haris&lt;/P&gt;</description>
      <pubDate>Mon, 28 Nov 2016 20:05:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Effect-coding-in-GLIMMIX/m-p/314936#M22082</guid>
      <dc:creator>Haris</dc:creator>
      <dc:date>2016-11-28T20:05:39Z</dc:date>
    </item>
    <item>
      <title>Re: Effect-coding in GLIMMIX</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Effect-coding-in-GLIMMIX/m-p/314957#M22083</link>
      <description>SAS Tech Support came through rapidly: DIFF=ANOM option in the LSMEANS statement in PROC GLIMMIX is exactly what I was looking for.</description>
      <pubDate>Mon, 28 Nov 2016 20:53:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Effect-coding-in-GLIMMIX/m-p/314957#M22083</guid>
      <dc:creator>Haris</dc:creator>
      <dc:date>2016-11-28T20:53:43Z</dc:date>
    </item>
    <item>
      <title>Re: Effect-coding in GLIMMIX</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Effect-coding-in-GLIMMIX/m-p/417949#M22084</link>
      <description>&lt;P&gt;Haris, Since you figured it out, maybe you can help me? I added a "lsmeans var / diff=anom" line to my proc glimmix code and all that did was lines to my output populated with . (missing values) for the main effects. Interestingly, they are the inverse in direction, but the same in magnitude as the original output without the lsmeans var / diff=anom line.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have to conduct these follow up tests for two separate analyses. In one the two model variables are categorical with two levels each and their interaction. In a second, I have a two categorical variables with 2 levels each, a linear variable, the quadratic of that linear variable, and all the higher-order interactions.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be much appreciated.&lt;/P&gt;</description>
      <pubDate>Sat, 02 Dec 2017 15:01:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Effect-coding-in-GLIMMIX/m-p/417949#M22084</guid>
      <dc:creator>maleien</dc:creator>
      <dc:date>2017-12-02T15:01:44Z</dc:date>
    </item>
    <item>
      <title>Re: Effect-coding in GLIMMIX</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Effect-coding-in-GLIMMIX/m-p/454004#M23715</link>
      <description>&lt;P&gt;I would recommend manually coding your categorical variables if you want to use effect coding.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, if you have a categorical variable called&amp;nbsp;&lt;STRONG&gt;hospital&lt;/STRONG&gt; with values of "Hospital A", "Hospital B", and "Hospital C", rather than entering&amp;nbsp;hospital into proc glimmix in the class statement, instead create two new variables, "Hospital_A" and "Hospital_B" (Hospital C is&amp;nbsp;arbitrarily designated the reference group).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If hospital = "Hospital A",&amp;nbsp; then Hospital_A = 1, hospital = "Hospital B",&amp;nbsp; then Hospital_A = 0, and&amp;nbsp;if hospital = "Hospital C",&amp;nbsp;then Hospital_A = -1. Use the same logic for the Hospital_B variable.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Manual coding allows you to choose which category to use as a reference and directly find the effect code coefficients in the Solutions for Fixed Effects output (use the "solution" option in the model statement). I would also use manual coding when using weighted effect coding, when there are an unequal number of observations across categories.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Apr 2018 18:05:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Effect-coding-in-GLIMMIX/m-p/454004#M23715</guid>
      <dc:creator>RobertF</dc:creator>
      <dc:date>2018-04-13T18:05:33Z</dc:date>
    </item>
    <item>
      <title>Re: Effect-coding in GLIMMIX</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Effect-coding-in-GLIMMIX/m-p/544119#M27231</link>
      <description>&lt;P&gt;RobertF,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Manual coding is nice if you have a reasonable number of categories.&amp;nbsp; My categorical variable is approaching 500 levels.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Another nice thing about DIFF=ANOM is that it gives you effects for each level of the predictor without the need to re-run the model with a different reference category to obtain the delta for that level.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Mar 2019 22:43:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Effect-coding-in-GLIMMIX/m-p/544119#M27231</guid>
      <dc:creator>Haris</dc:creator>
      <dc:date>2019-03-18T22:43:54Z</dc:date>
    </item>
  </channel>
</rss>

