<?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: different results when use reference option in PHREG class statement in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/different-results-when-use-reference-option-in-PHREG-class/m-p/536476#M147433</link>
    <description>&lt;P&gt;Thank you for the quick response!&amp;nbsp; Apologies for taking so long to reply.&amp;nbsp; I did not have access to a computer with SAS on it over the weekend.&amp;nbsp; Much appreciated.&lt;/P&gt;</description>
    <pubDate>Mon, 18 Feb 2019 13:49:21 GMT</pubDate>
    <dc:creator>morris</dc:creator>
    <dc:date>2019-02-18T13:49:21Z</dc:date>
    <item>
      <title>different results when use reference option in PHREG class statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/different-results-when-use-reference-option-in-PHREG-class/m-p/536080#M147278</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am running a survival analysis in PHREG in which I am interested in predicting survival from the interaction of 2 categorical variables, each with two levels (treatment = control or experimental; size class = small (S) or large (L)).&amp;nbsp; I am using version 9.4&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I first ran the code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc phreg data=males;
class treatment size_class;
model exposuredays*event(0)=treatment*size_class/ties=exact;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I then decided I wanted to set the reference level for each class variable to be able to make more intuitive comparisons and ran the following code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc phreg data=males;
class treatment (ref='control') size_class (ref='S');
model exposuredays*event(0)=treatment*size_class/ties=exact;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I thought the p-values, AIC values, etc would be same from each, but they are not even close.&amp;nbsp; I found some lecture notes online which said that without reference coding the model "estimates the difference in the effect of each level compared to the average effect over all four levels" and that with reference coding the model "estimates the difference in the effect of each level compared to the reference level."&amp;nbsp; (&lt;A href="http://www.misug.org/uploads/8/1/9/1/8191072/bgillespie_phreg.pdf)&amp;nbsp;" target="_blank"&gt;http://www.misug.org/uploads/8/1/9/1/8191072/bgillespie_phreg.pdf)&amp;nbsp;&lt;/A&gt; However, I don't fully understand 1) what this means, or 2) which specification is most appropriate for my analysis.&amp;nbsp; It seems to me that with two categorical levels for each effect, using referencing would be more appropriate, but as I don't fully understand why there is a difference in the first place, I am not very confident about that.&amp;nbsp; I feel like this must have come up before but I didn't see it in previous posts.&amp;nbsp;&amp;nbsp;Can anyone help me to understand?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance for any suggestions!&lt;/P&gt;</description>
      <pubDate>Fri, 15 Feb 2019 22:19:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/different-results-when-use-reference-option-in-PHREG-class/m-p/536080#M147278</guid>
      <dc:creator>morris</dc:creator>
      <dc:date>2019-02-15T22:19:31Z</dc:date>
    </item>
    <item>
      <title>Re: different results when use reference option in PHREG class statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/different-results-when-use-reference-option-in-PHREG-class/m-p/536082#M147279</link>
      <description>You want to add PARAM=REF as well. WHen you dummy code a variable, you can use 0/1 to code it. But you can also use different coding systems, such as -1, 0, 1 for different levels. However, then you're testing a different hypothesis and get different results. Stick with PARAM=REF to understand what you get. It's also the most commonly used parameterization method.</description>
      <pubDate>Fri, 15 Feb 2019 22:30:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/different-results-when-use-reference-option-in-PHREG-class/m-p/536082#M147279</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-02-15T22:30:45Z</dc:date>
    </item>
    <item>
      <title>Re: different results when use reference option in PHREG class statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/different-results-when-use-reference-option-in-PHREG-class/m-p/536476#M147433</link>
      <description>&lt;P&gt;Thank you for the quick response!&amp;nbsp; Apologies for taking so long to reply.&amp;nbsp; I did not have access to a computer with SAS on it over the weekend.&amp;nbsp; Much appreciated.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Feb 2019 13:49:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/different-results-when-use-reference-option-in-PHREG-class/m-p/536476#M147433</guid>
      <dc:creator>morris</dc:creator>
      <dc:date>2019-02-18T13:49:21Z</dc:date>
    </item>
  </channel>
</rss>

