<?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 PROC Phreg with Contrast statement instead of hazardratio statement in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-Phreg-with-Contrast-statement-instead-of-hazardratio/m-p/568010#M27958</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I'm trying to compute hazard ratios with confidence intervals and p values for my interaction term's between my explanatory variable var and another variable, polymicrobial, that modifies the effect of var on my outcome. (interaction term significant)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;var is a binary variable (1 or 2)&lt;/P&gt;&lt;P&gt;polymicrobial is a binary variable (1 and 0's)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I've computed HR's and CL with a&amp;nbsp; hazardratio statements as seen below. I want to compute the exact same in contrast statements, so i can get CI's and p-values for:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;var = 1 vs var= 2 at polymicrobial = 1&amp;nbsp;&lt;/P&gt;&lt;P&gt;var = 1 vs var = 2 at polymicrobial = 2&lt;/P&gt;&lt;P&gt;polymicrobial 1 vs 0 at var =1&lt;/P&gt;&lt;P&gt;polymicrobial 1 vs 0 at var=2.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;my code is as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Proc phreg data = d;&lt;BR /&gt;class var (ref='2') polymicrobial2(ref='0') /param= glm;&lt;BR /&gt;model (tid,Time_to_death_180Days)*Mortality_180_days(0) = var|polymicrobial age sex saps chronic_disease /risklimits ;&lt;/P&gt;&lt;P&gt;hazardratio var/ at(polymicrobial= all) ;&lt;BR /&gt;hazardratio polymicrobial / at(var=ALL) ;&lt;/P&gt;&lt;P&gt;run ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you help me do the same with contrast statements, I don't understand the syntax.&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;btw im running SAS 9.4&lt;/P&gt;</description>
    <pubDate>Fri, 21 Jun 2019 17:49:07 GMT</pubDate>
    <dc:creator>Mrksk</dc:creator>
    <dc:date>2019-06-21T17:49:07Z</dc:date>
    <item>
      <title>PROC Phreg with Contrast statement instead of hazardratio statement</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-Phreg-with-Contrast-statement-instead-of-hazardratio/m-p/568010#M27958</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I'm trying to compute hazard ratios with confidence intervals and p values for my interaction term's between my explanatory variable var and another variable, polymicrobial, that modifies the effect of var on my outcome. (interaction term significant)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;var is a binary variable (1 or 2)&lt;/P&gt;&lt;P&gt;polymicrobial is a binary variable (1 and 0's)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I've computed HR's and CL with a&amp;nbsp; hazardratio statements as seen below. I want to compute the exact same in contrast statements, so i can get CI's and p-values for:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;var = 1 vs var= 2 at polymicrobial = 1&amp;nbsp;&lt;/P&gt;&lt;P&gt;var = 1 vs var = 2 at polymicrobial = 2&lt;/P&gt;&lt;P&gt;polymicrobial 1 vs 0 at var =1&lt;/P&gt;&lt;P&gt;polymicrobial 1 vs 0 at var=2.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;my code is as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Proc phreg data = d;&lt;BR /&gt;class var (ref='2') polymicrobial2(ref='0') /param= glm;&lt;BR /&gt;model (tid,Time_to_death_180Days)*Mortality_180_days(0) = var|polymicrobial age sex saps chronic_disease /risklimits ;&lt;/P&gt;&lt;P&gt;hazardratio var/ at(polymicrobial= all) ;&lt;BR /&gt;hazardratio polymicrobial / at(var=ALL) ;&lt;/P&gt;&lt;P&gt;run ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you help me do the same with contrast statements, I don't understand the syntax.&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;btw im running SAS 9.4&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jun 2019 17:49:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-Phreg-with-Contrast-statement-instead-of-hazardratio/m-p/568010#M27958</guid>
      <dc:creator>Mrksk</dc:creator>
      <dc:date>2019-06-21T17:49:07Z</dc:date>
    </item>
    <item>
      <title>Re: PROC Phreg with Contrast statement instead of hazardratio statement</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-Phreg-with-Contrast-statement-instead-of-hazardratio/m-p/568017#M27959</link>
      <description>&lt;P&gt;To set up the same contrasts as the ones given on the HAZARDRATIO output, you could add the E option to the HAZARDRATIO statement.&amp;nbsp; That will give you the coefficients that are used to compute each one.&amp;nbsp; You could then use those coefficients in the CONTRAST statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jun 2019 18:09:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-Phreg-with-Contrast-statement-instead-of-hazardratio/m-p/568017#M27959</guid>
      <dc:creator>SAS_Rob</dc:creator>
      <dc:date>2019-06-21T18:09:16Z</dc:date>
    </item>
    <item>
      <title>Re: PROC Phreg with Contrast statement instead of hazardratio statement</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-Phreg-with-Contrast-statement-instead-of-hazardratio/m-p/568050#M27961</link>
      <description>Thank you!</description>
      <pubDate>Fri, 21 Jun 2019 19:20:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-Phreg-with-Contrast-statement-instead-of-hazardratio/m-p/568050#M27961</guid>
      <dc:creator>Mrksk</dc:creator>
      <dc:date>2019-06-21T19:20:35Z</dc:date>
    </item>
  </channel>
</rss>

