<?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: Test for trend in hazard ratios in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Test-for-trend-in-hazard-ratios/m-p/905853#M44948</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Maybe there's a solution within PROC PHREG (I don't know PROC PHREG well enough).&lt;BR /&gt;Otherwise I think you can use PROC FREQ for trend test.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The below info is taken from&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Usage Note&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;I&gt;30333:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/I&gt;FASTats: Frequently Asked-For Statistics&lt;BR /&gt;&lt;A href="https://support.sas.com/kb/30/333.html" target="_blank"&gt;https://support.sas.com/kb/30/333.html&lt;/A&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;STRONG&gt;Cochran-Armitage trend test&amp;nbsp;&lt;/STRONG&gt;See&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://support.sas.com/kb/30/333.html#trend" target="_blank"&gt;Trend test for ordered alternatives&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Jonckheere-Terpstra test&amp;nbsp;&lt;/STRONG&gt;See&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://support.sas.com/kb/30/333.html#trend" target="_blank"&gt;Trend test for ordered alternatives&lt;/A&gt;.&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Trend test for ordered alternatives&lt;/STRONG&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;EM&gt;&lt;STRONG&gt;For binary responses:&lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Cochran-Armitage test in Base SAS PROC FREQ (TREND option in TABLES statement); SAS/STAT PROC MULTTEST (CA option in TEST statement); score test in SAS/STAT PROC LOGISTIC (equivalent to the Cochran-Armitage test).&lt;/LI&gt;
&lt;LI&gt;&lt;EM&gt;&lt;STRONG&gt;For binary or multilevel responses:&lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Jonckheere-Terpstra test in Base SAS PROC FREQ (JT option in the TABLES statement).&lt;/LI&gt;
&lt;LI&gt;&lt;EM&gt;&lt;STRONG&gt;For continuous responses:&lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Use Base SAS PROC CORR with KENDALL option. The p-value for the Kendall statistic is equivalent to the two-tailed p-value for the Jonckheere statistic. The one-tailed p-value is half this p-value. If the number of distinct response values is small, Base SAS PROC FREQ with the JT option can also be used. In small sample situations, an exact test is available (use the EXACT JT; statement).&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
    <pubDate>Sat, 02 Dec 2023 17:31:05 GMT</pubDate>
    <dc:creator>sbxkoenk</dc:creator>
    <dc:date>2023-12-02T17:31:05Z</dc:date>
    <item>
      <title>Test for trend in hazard ratios</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Test-for-trend-in-hazard-ratios/m-p/905428#M44934</link>
      <description>&lt;P&gt;Hi fellow users!&lt;/P&gt;
&lt;P&gt;I am looking at the association between antibiotic exposure (exposure var) and risk of diabetes (outcome). Antibiotics are measured as a number of courses and are a continuous variable. I also have created some predefined categories of antibiotics courses. These are as follows: 0 (no exposure); &amp;lt;=3 courses, &amp;lt;= 6 courses, &amp;lt;=9 courses and &amp;gt;= 10 courses.&lt;/P&gt;
&lt;P&gt;Now I have already got the hazard ratios, but I would like to know if there is a trend (positive) in the HR with increasing categories of antibiotics. Please suggest what my below syntax should look like when I am testing for trends.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Syntax:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;proc phreg data= dataset;&lt;/P&gt;
&lt;P&gt;model time&amp;nbsp; * diab(0) = abx_cat5 / rl;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Nov 2023 20:17:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Test-for-trend-in-hazard-ratios/m-p/905428#M44934</guid>
      <dc:creator>Sharan</dc:creator>
      <dc:date>2023-11-30T20:17:37Z</dc:date>
    </item>
    <item>
      <title>Re: Test for trend in hazard ratios</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Test-for-trend-in-hazard-ratios/m-p/905853#M44948</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Maybe there's a solution within PROC PHREG (I don't know PROC PHREG well enough).&lt;BR /&gt;Otherwise I think you can use PROC FREQ for trend test.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The below info is taken from&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Usage Note&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;I&gt;30333:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/I&gt;FASTats: Frequently Asked-For Statistics&lt;BR /&gt;&lt;A href="https://support.sas.com/kb/30/333.html" target="_blank"&gt;https://support.sas.com/kb/30/333.html&lt;/A&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;STRONG&gt;Cochran-Armitage trend test&amp;nbsp;&lt;/STRONG&gt;See&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://support.sas.com/kb/30/333.html#trend" target="_blank"&gt;Trend test for ordered alternatives&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Jonckheere-Terpstra test&amp;nbsp;&lt;/STRONG&gt;See&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://support.sas.com/kb/30/333.html#trend" target="_blank"&gt;Trend test for ordered alternatives&lt;/A&gt;.&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Trend test for ordered alternatives&lt;/STRONG&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;EM&gt;&lt;STRONG&gt;For binary responses:&lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Cochran-Armitage test in Base SAS PROC FREQ (TREND option in TABLES statement); SAS/STAT PROC MULTTEST (CA option in TEST statement); score test in SAS/STAT PROC LOGISTIC (equivalent to the Cochran-Armitage test).&lt;/LI&gt;
&lt;LI&gt;&lt;EM&gt;&lt;STRONG&gt;For binary or multilevel responses:&lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Jonckheere-Terpstra test in Base SAS PROC FREQ (JT option in the TABLES statement).&lt;/LI&gt;
&lt;LI&gt;&lt;EM&gt;&lt;STRONG&gt;For continuous responses:&lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Use Base SAS PROC CORR with KENDALL option. The p-value for the Kendall statistic is equivalent to the two-tailed p-value for the Jonckheere statistic. The one-tailed p-value is half this p-value. If the number of distinct response values is small, Base SAS PROC FREQ with the JT option can also be used. In small sample situations, an exact test is available (use the EXACT JT; statement).&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
      <pubDate>Sat, 02 Dec 2023 17:31:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Test-for-trend-in-hazard-ratios/m-p/905853#M44948</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2023-12-02T17:31:05Z</dc:date>
    </item>
  </channel>
</rss>

