<?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: How to tell which value is the reference group in proc reg? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-tell-which-value-is-the-reference-group-in-proc-reg/m-p/976135#M378255</link>
    <description>&lt;P&gt;Okay, understood. So, just to confirm - my dependent (outcome variable) is already coded as 0/1, so in proc reg, SAS automatically uses 0 as the reference group?&lt;/P&gt;</description>
    <pubDate>Wed, 01 Oct 2025 13:33:24 GMT</pubDate>
    <dc:creator>joachimg</dc:creator>
    <dc:date>2025-10-01T13:33:24Z</dc:date>
    <item>
      <title>How to tell which value is the reference group in proc reg?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-tell-which-value-is-the-reference-group-in-proc-reg/m-p/976132#M378253</link>
      <description>&lt;P&gt;I recognize that this is kind of a dumb question but I can't seem to find a concrete answer. I am running a regression using proc reg. My outcome variable is any smoking and is coded as 0 (no smoking) and 1 (any smoking). How do I know which level is the reference value? I have been assuming that it's 1, so my interpretation (let's say my exposure is income) would be with each additional unit of income, we see a 0.5 percentage point increase in smoking. But I can't see anywhere in the output where it confirms my interpretation. It's also my understanding that I can't change the reference group in proc reg - is this correct? Thanks.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Oct 2025 13:12:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-tell-which-value-is-the-reference-group-in-proc-reg/m-p/976132#M378253</guid>
      <dc:creator>joachimg</dc:creator>
      <dc:date>2025-10-01T13:12:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to tell which value is the reference group in proc reg?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-tell-which-value-is-the-reference-group-in-proc-reg/m-p/976134#M378254</link>
      <description>&lt;P&gt;PROC REG does not support a CLASS statement, so there is no default reference level.&amp;nbsp; When using PROC REG, you have to create the dummy variables yourself.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let's use the example of creating a dummy variable for a two-level variable such as GENDER. Your reference level is always the lowest level, which is 0 if you&amp;nbsp;construct a 0/1 binary variable.&amp;nbsp; For example, if you define&lt;BR /&gt;&lt;STRONG&gt;sex = (Gender='M');&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;then the '0' level corresponds to females.&amp;nbsp; However, if you define&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;sex = (Gender='F');&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;then the '0' level corresponds to males.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That is why I recommend including the reference level in the variable name, such as&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;isMale = (Gender='M');&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Oct 2025 13:30:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-tell-which-value-is-the-reference-group-in-proc-reg/m-p/976134#M378254</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2025-10-01T13:30:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to tell which value is the reference group in proc reg?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-tell-which-value-is-the-reference-group-in-proc-reg/m-p/976135#M378255</link>
      <description>&lt;P&gt;Okay, understood. So, just to confirm - my dependent (outcome variable) is already coded as 0/1, so in proc reg, SAS automatically uses 0 as the reference group?&lt;/P&gt;</description>
      <pubDate>Wed, 01 Oct 2025 13:33:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-tell-which-value-is-the-reference-group-in-proc-reg/m-p/976135#M378255</guid>
      <dc:creator>joachimg</dc:creator>
      <dc:date>2025-10-01T13:33:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to tell which value is the reference group in proc reg?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-tell-which-value-is-the-reference-group-in-proc-reg/m-p/976138#M378256</link>
      <description>&lt;P&gt;No. PROC REG assumes that the dependent variable (the response) is continuous. If your dependent variable is binary, you should probably switch to using PROC LOGISTIC, which (by default) models the probability that a response is 0.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Oct 2025 14:29:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-tell-which-value-is-the-reference-group-in-proc-reg/m-p/976138#M378256</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2025-10-01T14:29:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to tell which value is the reference group in proc reg?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-tell-which-value-is-the-reference-group-in-proc-reg/m-p/976290#M378292</link>
      <description>&lt;P&gt;As Rick pointed out, since your response variable Y is binary variable, you should use PROC LOGISTIC to build a logistic model instead of using PROC REG to build a OLS model.&lt;/P&gt;
&lt;P&gt;And using EVENT= option to spcify the reference level to Y.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;proc logistic data=have;
model smoking(&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;event='1'&lt;/STRONG&gt;&lt;/FONT&gt;)=age weight height;
run;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;NOTE: if you have a format attached with Y variable,you should use formatted value:&lt;/P&gt;
&lt;PRE&gt;proc logistic data=have;
model smoking(&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;event='smoking'&lt;/STRONG&gt;&lt;/FONT&gt;)=age weight height;
run;&lt;/PRE&gt;</description>
      <pubDate>Fri, 03 Oct 2025 02:01:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-tell-which-value-is-the-reference-group-in-proc-reg/m-p/976290#M378292</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2025-10-03T02:01:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to tell which value is the reference group in proc reg?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-tell-which-value-is-the-reference-group-in-proc-reg/m-p/976726#M378390</link>
      <description>&lt;P&gt;Is there anything else we can help you with? If not, please accept a solution and close this thread.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Oct 2025 19:17:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-tell-which-value-is-the-reference-group-in-proc-reg/m-p/976726#M378390</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2025-10-09T19:17:16Z</dc:date>
    </item>
  </channel>
</rss>

