<?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: A SAS macro to generate confidence intervals for the hazard ratio in randomized clinical trials in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/A-SAS-macro-to-generate-confidence-intervals-for-the-hazard/m-p/794642#M81537</link>
    <description>&lt;P&gt;This macro is from 2016. Maybe it was already made into a SAS procedure?&lt;/P&gt;</description>
    <pubDate>Sat, 05 Feb 2022 02:45:28 GMT</pubDate>
    <dc:creator>pink_poodle</dc:creator>
    <dc:date>2022-02-05T02:45:28Z</dc:date>
    <item>
      <title>A SAS macro to generate confidence intervals for the hazard ratio in randomized clinical trials</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/A-SAS-macro-to-generate-confidence-intervals-for-the-hazard/m-p/794611#M81531</link>
      <description>&lt;P&gt;I found this macro&amp;nbsp; online and I may be useful for my analysis but when I tried to run it as it is, its not working. Anyone knows why?&lt;/P&gt;&lt;P&gt;Here is the link:&amp;nbsp;&lt;A href="https://dlin.web.unc.edu/software/hazardratio/" target="_blank"&gt;https://dlin.web.unc.edu/software/hazardratio/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;%macro&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;HazardRatio&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;(&lt;STRONG&gt;Data&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;= Data,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Time&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;= Time,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Status&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;= Status,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Stratum&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;=,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Treatment&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;= Treatment,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Alpha&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;= 0.05,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Accuracy&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;= 0.001,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Result&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;= HR_CI);&lt;/P&gt;&lt;P&gt;……&lt;BR /&gt;%mend&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;HazardRatio&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;data test;&lt;BR /&gt;input Treatment Stratum Time Status;&lt;BR /&gt;datalines;&lt;BR /&gt;1 2 1521 1&lt;BR /&gt;1 1 1537 0&lt;BR /&gt;0 2 963 1&lt;BR /&gt;1 2 293 1&lt;BR /&gt;0 2 659 1&lt;BR /&gt;1 2 1767 1&lt;BR /&gt;0 1 1865 0&lt;BR /&gt;1 1 1792 0&lt;BR /&gt;1 1 1841 1&lt;BR /&gt;0 1 1845 1&lt;BR /&gt;0 1 1888 1&lt;BR /&gt;0 1 1701 1&lt;BR /&gt;1 1 887 1&lt;BR /&gt;0 1 1918 1&lt;BR /&gt;1 1 1822 1&lt;BR /&gt;1 1 1638 1&lt;BR /&gt;0 1 1772 1&lt;BR /&gt;0 2 384 1&lt;BR /&gt;0 2 218 1&lt;BR /&gt;1 1 1775 1&lt;BR /&gt;1 1 1526 1&lt;BR /&gt;0 1 1745 1&lt;BR /&gt;0 1 1788 1&lt;BR /&gt;1 1 1387 1&lt;BR /&gt;;&lt;BR /&gt;run;&lt;BR /&gt;%score_bound(Data = test, Time = Time, Event = Event, Stratum = Stratum,&lt;BR /&gt;Treatment = Treatment, Alpha = 0.05, Accuracy = 0.000001);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;This is the log&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&lt;/P&gt;&lt;P&gt;294 %macro HazardRatio (Data = data, Time = Time, Status = Status, Stratum =, Treatment = Treatment,&lt;BR /&gt;294! Alpha = 0.05, Accuracy = 0.000001, Result = HR_CI);&lt;BR /&gt;295&lt;BR /&gt;296 %mend HazardRatio;&lt;BR /&gt;297 data test;&lt;BR /&gt;298 input Treatment Stratum Time Status;&lt;BR /&gt;299 datalines;&lt;/P&gt;&lt;P&gt;NOTE: The data set WORK.TEST has 24 observations and 4 variables.&lt;BR /&gt;NOTE: DATA statement used (Total process time):&lt;BR /&gt;real time 0.28 seconds&lt;BR /&gt;cpu time 0.12 seconds&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;WARNING: Apparent invocation of macro SCORE_BOUND not resolved.&lt;BR /&gt;324 ;&lt;BR /&gt;325 run;&lt;BR /&gt;326 %score_bound(Data = test, Time = Time, Event = Event, Stratum = Stratum,&lt;BR /&gt;-&lt;BR /&gt;180&lt;BR /&gt;ERROR 180-322: Statement is not valid or it is used out of proper order.&lt;/P&gt;&lt;P&gt;327 Treatment = Treatment, Alpha = 0.05, Accuracy = 0.000001);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Feb 2022 21:10:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/A-SAS-macro-to-generate-confidence-intervals-for-the-hazard/m-p/794611#M81531</guid>
      <dc:creator>CathyVI</dc:creator>
      <dc:date>2022-02-04T21:10:34Z</dc:date>
    </item>
    <item>
      <title>Re: A SAS macro to generate confidence intervals for the hazard ratio in randomized clinical trials</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/A-SAS-macro-to-generate-confidence-intervals-for-the-hazard/m-p/794620#M81532</link>
      <description>&lt;P&gt;Where is the macro &lt;STRONG&gt;SCORE_BOUND&lt;/STRONG&gt; defined?&lt;/P&gt;
&lt;P&gt;You call it after your data step but do not show where it is defined.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the macro Hazardratio calls the macro Score_bound, which we can't see because you did not include the code, then you need to compile that macro before running Hazardratio.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You will want to get in the habit of setting OPTIONS MPRINT; before attempting to debug macro behavior. That will show more details of what SAS statements the macro is generating and then error messages usually make more sense in context.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Feb 2022 22:02:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/A-SAS-macro-to-generate-confidence-intervals-for-the-hazard/m-p/794620#M81532</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-02-04T22:02:38Z</dc:date>
    </item>
    <item>
      <title>Re: A SAS macro to generate confidence intervals for the hazard ratio in randomized clinical trials</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/A-SAS-macro-to-generate-confidence-intervals-for-the-hazard/m-p/794642#M81537</link>
      <description>&lt;P&gt;This macro is from 2016. Maybe it was already made into a SAS procedure?&lt;/P&gt;</description>
      <pubDate>Sat, 05 Feb 2022 02:45:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/A-SAS-macro-to-generate-confidence-intervals-for-the-hazard/m-p/794642#M81537</guid>
      <dc:creator>pink_poodle</dc:creator>
      <dc:date>2022-02-05T02:45:28Z</dc:date>
    </item>
  </channel>
</rss>

