<?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: Selecting arms for Hazard Ratio in Proc PHREG in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Selecting-arms-for-Hazard-Ratio-in-Proc-PHREG/m-p/425411#M68276</link>
    <description>&lt;P&gt;The hazard ratio will be correct, the parameter estimate may not be what you expect however.&lt;/P&gt;</description>
    <pubDate>Fri, 05 Jan 2018 22:05:40 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2018-01-05T22:05:40Z</dc:date>
    <item>
      <title>Selecting arms for Hazard Ratio in Proc PHREG</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Selecting-arms-for-Hazard-Ratio-in-Proc-PHREG/m-p/425339#M68267</link>
      <description>&lt;P&gt;I have 4 treatment arms, and arm 1 is the active treatment group, and arms 2, 3 and 4 are three control groups.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How to get Hazard Ratios and 95% CIs of Arm1 vs Arm2, Arm1 vs Arm3, and Arm1 vs Arm4?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;using the code below (Ref='1') I can get HR of Arm2 vs Arm1, Arm3 vs Arm1 and Arm4 vs Arm1, and the 95% CIs.&lt;/P&gt;
&lt;P&gt;To convert to HR of Arm1 vs the others, I can take Reciprocal of the original HRs, but how to get the 95% CI of the Reciprocal?&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;ods listing close;
ods output  ParameterEstimates  =__str_ParameterEstimates0 
            GlobalTests         =__str_GlobalTests0;
proc phreg data=endpoint;
    class ARM &lt;FONT color="#FF0000"&gt;(ref='1')&lt;/FONT&gt;;
    strata Agegrn ;
    model aval * cnsr(1) = ARM / risklimits;
quit;
ods output close;
ods listing;&lt;/PRE&gt;</description>
      <pubDate>Fri, 05 Jan 2018 19:15:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Selecting-arms-for-Hazard-Ratio-in-Proc-PHREG/m-p/425339#M68267</guid>
      <dc:creator>fengyuwuzu</dc:creator>
      <dc:date>2018-01-05T19:15:27Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting arms for Hazard Ratio in Proc PHREG</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Selecting-arms-for-Hazard-Ratio-in-Proc-PHREG/m-p/425355#M68268</link>
      <description>&lt;P&gt;I figured it out, by using&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;hazardratio 'Group comparisons ' ARM / diff=all;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 05 Jan 2018 20:08:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Selecting-arms-for-Hazard-Ratio-in-Proc-PHREG/m-p/425355#M68268</guid>
      <dc:creator>fengyuwuzu</dc:creator>
      <dc:date>2018-01-05T20:08:29Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting arms for Hazard Ratio in Proc PHREG</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Selecting-arms-for-Hazard-Ratio-in-Proc-PHREG/m-p/425363#M68270</link>
      <description>&lt;P&gt;You may also want to set PARAM=REF on your CLASS statement.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Review the design matrix (top of the SAS output) to ensure it's what you're expected. Otherwise you'll likely interpret your parameters incorrectly, and/or your next question will be why are the ratios from the parameter estimates different than the ones from HazardRatio statement.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jan 2018 20:28:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Selecting-arms-for-Hazard-Ratio-in-Proc-PHREG/m-p/425363#M68270</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-01-05T20:28:33Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting arms for Hazard Ratio in Proc PHREG</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Selecting-arms-for-Hazard-Ratio-in-Proc-PHREG/m-p/425409#M68275</link>
      <description>&lt;P&gt;Thank you Reeza.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have compared the output using Hazardratio statement and the one I got before, so I know I got the right numbers.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I will also look at the PARAM=REF option. Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jan 2018 22:03:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Selecting-arms-for-Hazard-Ratio-in-Proc-PHREG/m-p/425409#M68275</guid>
      <dc:creator>fengyuwuzu</dc:creator>
      <dc:date>2018-01-05T22:03:19Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting arms for Hazard Ratio in Proc PHREG</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Selecting-arms-for-Hazard-Ratio-in-Proc-PHREG/m-p/425411#M68276</link>
      <description>&lt;P&gt;The hazard ratio will be correct, the parameter estimate may not be what you expect however.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jan 2018 22:05:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Selecting-arms-for-Hazard-Ratio-in-Proc-PHREG/m-p/425411#M68276</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-01-05T22:05:40Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting arms for Hazard Ratio in Proc PHREG</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Selecting-arms-for-Hazard-Ratio-in-Proc-PHREG/m-p/425422#M68278</link>
      <description>&lt;P&gt;Oh, I did not realize that. So, is the code below right? Do I need to use the contrast statement ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods listing close;
ods output  ParameterEstimates  =__str_ParameterEstimates0 
            GlobalTests         =__str_GlobalTests0;
proc phreg data=endpoint;
    class ARM (ref='1')  &lt;FONT color="#FF0000"&gt;/ param=ref&lt;/FONT&gt;;
    strata Agegrn ;
    model aval * cnsr(1) = ARM / risklimits;
quit;
ods output close;
ods listing;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 05 Jan 2018 22:21:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Selecting-arms-for-Hazard-Ratio-in-Proc-PHREG/m-p/425422#M68278</guid>
      <dc:creator>fengyuwuzu</dc:creator>
      <dc:date>2018-01-05T22:21:20Z</dc:date>
    </item>
  </channel>
</rss>

