<?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 Proc logistic, contrast ,  one level vs average of all levels in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-logistic-contrast-one-level-vs-average-of-all-levels/m-p/877295#M43387</link>
    <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ivy_0-1684941957887.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/84244iF7F3B29B6AFFA9D1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ivy_0-1684941957887.png" alt="Ivy_0-1684941957887.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to write the contrast statement for race in reference coding schema:&lt;/P&gt;
&lt;P&gt;black vs the average effect of the three levels (black vs (black + other + white)/3)&lt;/P&gt;
&lt;P&gt;contrast 'race black vs (white black other)/3' race 2 -1 / estimate=all ;&lt;/P&gt;
&lt;P&gt;The result seems not right.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;May you please help with the statement?&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Wed, 24 May 2023 15:31:38 GMT</pubDate>
    <dc:creator>Ivy</dc:creator>
    <dc:date>2023-05-24T15:31:38Z</dc:date>
    <item>
      <title>Proc logistic, contrast ,  one level vs average of all levels</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-logistic-contrast-one-level-vs-average-of-all-levels/m-p/877295#M43387</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ivy_0-1684941957887.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/84244iF7F3B29B6AFFA9D1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ivy_0-1684941957887.png" alt="Ivy_0-1684941957887.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to write the contrast statement for race in reference coding schema:&lt;/P&gt;
&lt;P&gt;black vs the average effect of the three levels (black vs (black + other + white)/3)&lt;/P&gt;
&lt;P&gt;contrast 'race black vs (white black other)/3' race 2 -1 / estimate=all ;&lt;/P&gt;
&lt;P&gt;The result seems not right.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;May you please help with the statement?&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2023 15:31:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-logistic-contrast-one-level-vs-average-of-all-levels/m-p/877295#M43387</guid>
      <dc:creator>Ivy</dc:creator>
      <dc:date>2023-05-24T15:31:38Z</dc:date>
    </item>
    <item>
      <title>Re: Proc logistic, contrast ,  one level vs average of all levels</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-logistic-contrast-one-level-vs-average-of-all-levels/m-p/877328#M43388</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have moved your post to the "Statistical Procedures" board.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Why don't you use effect coding (aka deviation-from-the-mean coding) instead of reference-cell coding?&lt;BR /&gt;&lt;SPAN&gt;This deviation effect coding system compares the mean of the dependent variable for a given level to the grand mean of the dependent variable.&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Otherwise, see here:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Usage Note 24447: Examples of writing CONTRAST and ESTIMATE statements&lt;BR /&gt;&lt;A href="https://support.sas.com/kb/24/447.html" target="_blank"&gt;https://support.sas.com/kb/24/447.html&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Koen&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2023 17:30:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-logistic-contrast-one-level-vs-average-of-all-levels/m-p/877328#M43388</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2023-05-24T17:30:03Z</dc:date>
    </item>
    <item>
      <title>Re: Proc logistic, contrast ,  one level vs average of all levels</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-logistic-contrast-one-level-vs-average-of-all-levels/m-p/877697#M43396</link>
      <description>&lt;P&gt;If you shift to effect coding (as in PROC GLM), you can use the following LSMEAN statement to compare each level to the average of all levels.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;lsmeans race/diff=ANOM;&lt;/PRE&gt;
&lt;P&gt;The p values associated with this option are for the difference on the logit scale. If you want to get the difference on the original scale, you will likely need to use the %NLEst and %NLMeans macros, which will draw on&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/60547"&gt;@sbxkoenk&lt;/a&gt;&amp;nbsp;comments about ESTIMATE statements.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;</description>
      <pubDate>Fri, 26 May 2023 14:44:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-logistic-contrast-one-level-vs-average-of-all-levels/m-p/877697#M43396</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2023-05-26T14:44:19Z</dc:date>
    </item>
  </channel>
</rss>

