<?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: Class statement in Proc PHReg in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Class-statement-in-Proc-PHReg/m-p/199742#M10693</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Reeza, Thanks for reply. I could not understand your reply for the 2nd question (i.e. &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #ffffff;"&gt;Not for calculations - only for presentation).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My assumption was I should get same Hazard ratio from Ex.1 (without DESC option) and Ex. 2 (with DESC option). So can i say it impacts the output?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll try with PARAM= option to look how the design matrix is created. Thanks for suggesting.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Jul 2015 18:02:50 GMT</pubDate>
    <dc:creator>MannMishra</dc:creator>
    <dc:date>2015-07-09T18:02:50Z</dc:date>
    <item>
      <title>Class statement in Proc PHReg</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Class-statement-in-Proc-PHReg/m-p/199740#M10691</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: Arial, sans-serif; font-size: 13px; background-color: #ffffff;"&gt;Recently i had to use Proc Phreg and being a non stats programmer, I have some doubts which I'm sharing here so I can get some help from experts:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: Arial, sans-serif; font-size: 13px; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: Arial, sans-serif; font-size: 13px; background-color: #ffffff;"&gt;A variable ABC has 2 categorical values 0 and 1 sorted in ascending order within the treatment (TRT). &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: Arial, sans-serif; font-size: 13px; background-color: #ffffff;"&gt;I wanted to understand how PHREG decides the Reference among these 2 values (0 &amp;amp; 1) for the Hazard Ratio in following cases when used in class statement: I understand that by default it considers LAST level. So REF= is used to explicitly tell the SAS the reference value and not decide by its own(correct me if i'm wrong). &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: Arial, sans-serif; font-size: 13px; background-color: #ffffff;"&gt;So here what I want to understand is: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: Arial, sans-serif; font-size: 13px; background-color: #ffffff;"&gt;A) Does prior sorting of class variable matters even if REF= is used (as in ex. 1) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: Arial, sans-serif; font-size: 13px; background-color: #ffffff;"&gt;B) Does / DESC option makes difference if used along with REF= (as in ex 2) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: Arial, sans-serif; font-size: 13px; background-color: #ffffff;"&gt;C) If no CLASS statement is used, does PHREG sorts abc variable internally and consider LAST ordered value as reference (ex. 3)? &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: Arial, sans-serif; font-size: 13px; background-color: #ffffff;"&gt;Please let me know if my question is not clear. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: Arial, sans-serif; font-size: 13px; background-color: #ffffff;"&gt;1) Proc phreg data = test; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: Arial, sans-serif; font-size: 13px; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; BY trt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: Arial, sans-serif; font-size: 13px; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CLASS abc(ref=’0’) ; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: Arial, sans-serif; font-size: 13px; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MODEL time*censor(1) = abc /ties=exact rl; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: Arial, sans-serif; font-size: 13px; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; STRATA s1 s2; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: Arial, sans-serif; font-size: 13px; background-color: #ffffff;"&gt;&amp;nbsp; Run; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: Arial, sans-serif; font-size: 13px; background-color: #ffffff;"&gt;2) Proc phreg data = test; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: Arial, sans-serif; font-size: 13px; background-color: #ffffff;"&gt;By TRT; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: Arial, sans-serif; font-size: 13px; background-color: #ffffff;"&gt;CLASS abc(ref=’0’) /DESC; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: Arial, sans-serif; font-size: 13px; background-color: #ffffff;"&gt;MODEL time*censor(1) = abc /ties=exact rl; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: Arial, sans-serif; font-size: 13px; background-color: #ffffff;"&gt;STRATA s1 s2; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: Arial, sans-serif; font-size: 13px; background-color: #ffffff;"&gt;RUN; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: Arial, sans-serif; font-size: 13px; background-color: #ffffff;"&gt;3) *Without CLASS Statement ; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: Arial, sans-serif; font-size: 13px; background-color: #ffffff;"&gt;Proc phreg data = test; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: Arial, sans-serif; font-size: 13px; background-color: #ffffff;"&gt;By TRT; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: Arial, sans-serif; font-size: 13px; background-color: #ffffff;"&gt;MODEL time*censor(1) = abc /ties=exact rl; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: Arial, sans-serif; font-size: 13px; background-color: #ffffff;"&gt;STRATA s1 s2; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: Arial, sans-serif; font-size: 13px; background-color: #ffffff;"&gt;RUN; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jul 2015 17:25:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Class-statement-in-Proc-PHReg/m-p/199740#M10691</guid>
      <dc:creator>MannMishra</dc:creator>
      <dc:date>2015-07-09T17:25:18Z</dc:date>
    </item>
    <item>
      <title>Re: Class statement in Proc PHReg</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Class-statement-in-Proc-PHReg/m-p/199741#M10692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1) No&lt;/P&gt;&lt;P&gt;2) Not for calculations - only for presentation&lt;/P&gt;&lt;P&gt;3) No, it treats the value as numeric or generates an error if the variable is character.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may also want to look into PARAM= option on the class statement that denotes how SAS codes the reference variables. The output will print out the design matrix that lets you know. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/statug/63033/HTML/default/viewer.htm#statug_phreg_sect024.htm" title="http://support.sas.com/documentation/cdl/en/statug/63033/HTML/default/viewer.htm#statug_phreg_sect024.htm"&gt;SAS/STAT(R) 9.2 User's Guide, Second Edition&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jul 2015 17:31:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Class-statement-in-Proc-PHReg/m-p/199741#M10692</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-07-09T17:31:41Z</dc:date>
    </item>
    <item>
      <title>Re: Class statement in Proc PHReg</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Class-statement-in-Proc-PHReg/m-p/199742#M10693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Reeza, Thanks for reply. I could not understand your reply for the 2nd question (i.e. &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #ffffff;"&gt;Not for calculations - only for presentation).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My assumption was I should get same Hazard ratio from Ex.1 (without DESC option) and Ex. 2 (with DESC option). So can i say it impacts the output?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll try with PARAM= option to look how the design matrix is created. Thanks for suggesting.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jul 2015 18:02:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Class-statement-in-Proc-PHReg/m-p/199742#M10693</guid>
      <dc:creator>MannMishra</dc:creator>
      <dc:date>2015-07-09T18:02:50Z</dc:date>
    </item>
    <item>
      <title>Re: Class statement in Proc PHReg</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Class-statement-in-Proc-PHReg/m-p/199743#M10694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It may affects the order the results are presented/displayed in, but not the values. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jul 2015 19:20:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Class-statement-in-Proc-PHReg/m-p/199743#M10694</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-07-09T19:20:49Z</dc:date>
    </item>
  </channel>
</rss>

