<?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 reference coding in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/reference-coding/m-p/757948#M36899</link>
    <description>&lt;P&gt;A very basic issue for someone unused to class statements. I worked with proc reg mainly in the past. I have data that is coded 1 if you are in a specific group (say age 25-44) and 0 otherwise. These are of course dummy variables. I do&amp;nbsp; in part.&lt;/P&gt;
&lt;P&gt;CLASS&lt;/P&gt;
&lt;P&gt;"Age 25 to 44"n (ref ="0")&lt;/P&gt;
&lt;P&gt;and get&amp;nbsp; this parameter estimate.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="noetsi_0-1627505569911.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/62034iFC1AFE5A3B84B5FD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="noetsi_0-1627505569911.png" alt="noetsi_0-1627505569911.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;If I understand correctly level 0 in the original data is the reference level and the mean difference (controlling for other variables) between level one and level 0 is 3014.736, that is level 1 is higher than level 0 (a terrible way to refer to a slope I know, but I just want to be sure I understand how the coding works).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 28 Jul 2021 20:59:53 GMT</pubDate>
    <dc:creator>noetsi</dc:creator>
    <dc:date>2021-07-28T20:59:53Z</dc:date>
    <item>
      <title>reference coding</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/reference-coding/m-p/757948#M36899</link>
      <description>&lt;P&gt;A very basic issue for someone unused to class statements. I worked with proc reg mainly in the past. I have data that is coded 1 if you are in a specific group (say age 25-44) and 0 otherwise. These are of course dummy variables. I do&amp;nbsp; in part.&lt;/P&gt;
&lt;P&gt;CLASS&lt;/P&gt;
&lt;P&gt;"Age 25 to 44"n (ref ="0")&lt;/P&gt;
&lt;P&gt;and get&amp;nbsp; this parameter estimate.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="noetsi_0-1627505569911.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/62034iFC1AFE5A3B84B5FD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="noetsi_0-1627505569911.png" alt="noetsi_0-1627505569911.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;If I understand correctly level 0 in the original data is the reference level and the mean difference (controlling for other variables) between level one and level 0 is 3014.736, that is level 1 is higher than level 0 (a terrible way to refer to a slope I know, but I just want to be sure I understand how the coding works).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jul 2021 20:59:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/reference-coding/m-p/757948#M36899</guid>
      <dc:creator>noetsi</dc:creator>
      <dc:date>2021-07-28T20:59:53Z</dc:date>
    </item>
    <item>
      <title>Re: reference coding</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/reference-coding/m-p/757949#M36900</link>
      <description>&lt;P&gt;That is correct. Equivalently, you could just not specify that variable in the CLASS statement.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jul 2021 21:08:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/reference-coding/m-p/757949#M36900</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2021-07-28T21:08:40Z</dc:date>
    </item>
    <item>
      <title>Re: reference coding</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/reference-coding/m-p/757951#M36901</link>
      <description>If you had an age variable that was in categories it's usually normal to have an AGE variable with the different categories in a single variable and then use the CLASS statement. It doesn't make sense to create a bunch of 0/1 variables to use in the CLASS statement.</description>
      <pubDate>Wed, 28 Jul 2021 21:24:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/reference-coding/m-p/757951#M36901</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-07-28T21:24:03Z</dc:date>
    </item>
    <item>
      <title>Re: reference coding</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/reference-coding/m-p/758424#M36924</link>
      <description>The variables were created by the federal agency we report to. They have split age into a series of categories all of which are dummy variables and I have to run analysis using their variable schema. That said I don't understand what this entails.&lt;BR /&gt;&lt;BR /&gt;"If you had an age variable that was in categories it's usually normal to have an AGE variable with the different categories in a single variable and then use the CLASS statement."&lt;BR /&gt;&lt;BR /&gt;The organization in question says they are doing lots of things that puzzle me such as doing fixed effect regression (as per the Allison book) with no panel data. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
      <pubDate>Fri, 30 Jul 2021 15:31:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/reference-coding/m-p/758424#M36924</guid>
      <dc:creator>noetsi</dc:creator>
      <dc:date>2021-07-30T15:31:25Z</dc:date>
    </item>
    <item>
      <title>Re: reference coding</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/reference-coding/m-p/758456#M36928</link>
      <description>Typically you don't usually have variables with the names Age14_20 Age21_25 that are 0/1 to include in a class statement. Instead you would have a single variable Age, that has the values: "14 to 20", "21 to 25" etc and specify a single reference level in your CLASS statement. &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 30 Jul 2021 18:11:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/reference-coding/m-p/758456#M36928</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-07-30T18:11:31Z</dc:date>
    </item>
  </channel>
</rss>

