<?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: SAS code or macro for creating an exposure-response spline plot by Hazard Ratio in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/SAS-code-or-macro-for-creating-an-exposure-response-spline-plot/m-p/568369#M36359</link>
    <description>&lt;P&gt;I’ve already calculated one HR and one CI (not at each point of x-axis). But if I have to yield every point and CI before plotting, I want to know how to calculate them either. Thanks.&lt;/P&gt;</description>
    <pubDate>Mon, 24 Jun 2019 14:04:23 GMT</pubDate>
    <dc:creator>nexterd</dc:creator>
    <dc:date>2019-06-24T14:04:23Z</dc:date>
    <item>
      <title>SAS code or macro for creating an exposure-response spline plot by Hazard Ratio</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/SAS-code-or-macro-for-creating-an-exposure-response-spline-plot/m-p/568263#M36357</link>
      <description>&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;I am trying to create an exposure-response (or dose-response) plot by Hazard Ratio, which was calculated by time-dependent Cox proportional regression. An example I am attaching with is from Tomczak et al. (2016), but it was constructed by R.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="spline.JPG" style="width: 353px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/30482i30C67983CC52A5CA/image-size/large?v=v2&amp;amp;px=999" role="button" title="spline.JPG" alt="spline.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I want to find out how to draw an exact or similar plot in SAS. I've already tried some methods including the way LinusS posted in &lt;A href="https://communities.sas.com/t5/SAS-in-Health-Care-Related/How-do-I-plot-the-spline-effect-in-PHREG/td-p/108326" target="_blank" rel="noopener"&gt;https://communities.sas.com/t5/SAS-in-Health-Care-Related/How-do-I-plot-the-spline-effect-in-PHREG/td-p/108326&lt;/A&gt;&lt;/P&gt;&lt;P&gt;But it draws something that needs to fix i.e., zeroing the CI at the reference value (in this case, it's the median) like below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="20190624_105318.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/30483iE6D3960D4A239BF6/image-size/large?v=v2&amp;amp;px=999" role="button" title="20190624_105318.png" alt="20190624_105318.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think it explains about rate ratio/rate ratio (of the reference) not just rate ratio. Also, since it was set as using type=log in PROC SGPLOT, the intervals of y-axis are all different. Is it okay if I change it's type to linear intead of log? In my dataset, all individuals have been assigned each value of exposure and survival time to estimate HRs. And I am using SAS EG 7.1. Thank you for your help in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jun 2019 02:00:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/SAS-code-or-macro-for-creating-an-exposure-response-spline-plot/m-p/568263#M36357</guid>
      <dc:creator>nexterd</dc:creator>
      <dc:date>2019-06-24T02:00:21Z</dc:date>
    </item>
    <item>
      <title>Re: SAS code or macro for creating an exposure-response spline plot by Hazard Ratio</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/SAS-code-or-macro-for-creating-an-exposure-response-spline-plot/m-p/568343#M36358</link>
      <description>&lt;P&gt;Which of the following are you asking:&lt;/P&gt;
&lt;P&gt;1. How to compute the points and CI in SAS&lt;/P&gt;
&lt;P&gt;or&lt;/P&gt;
&lt;P&gt;2. You have the points and CI, and you want to know how to plot them by using PROC SGPLOT.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jun 2019 12:45:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/SAS-code-or-macro-for-creating-an-exposure-response-spline-plot/m-p/568343#M36358</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2019-06-24T12:45:49Z</dc:date>
    </item>
    <item>
      <title>Re: SAS code or macro for creating an exposure-response spline plot by Hazard Ratio</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/SAS-code-or-macro-for-creating-an-exposure-response-spline-plot/m-p/568369#M36359</link>
      <description>&lt;P&gt;I’ve already calculated one HR and one CI (not at each point of x-axis). But if I have to yield every point and CI before plotting, I want to know how to calculate them either. Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jun 2019 14:04:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/SAS-code-or-macro-for-creating-an-exposure-response-spline-plot/m-p/568369#M36359</guid>
      <dc:creator>nexterd</dc:creator>
      <dc:date>2019-06-24T14:04:23Z</dc:date>
    </item>
    <item>
      <title>Re: SAS code or macro for creating an exposure-response spline plot by Hazard Ratio</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/SAS-code-or-macro-for-creating-an-exposure-response-spline-plot/m-p/747069#M36360</link>
      <description>&lt;P&gt;Hi Rick,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a related question regarding the computation of CI's for splines in PHREG.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I have been successfully using the %est macro described by LinusS_ in this post (&lt;A href="https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/How-do-I-plot-the-spline-effect-in-PHREG/td-p/108326" target="_blank"&gt;https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/How-do-I-plot-the-spline-effect-in-PHREG/td-p/108326&lt;/A&gt;&amp;nbsp;)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, similar to the SAS graph above in this post, the confidence interval is essentially zero at the reference point, whereas similar code I have tried in R produces a continuous CI that does not approach zero width at the reference point.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am having difficulty finding statistical literature related to the validity of the CI estimation in SAS as opposed to what is produced in R and was wondering if you would be able to provide insight into these different methods of CI computation and whether there is a way to compute CIs in SAS that do not approach zero at the reference point for the spline.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your consideration and help!&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jun 2021 16:07:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/SAS-code-or-macro-for-creating-an-exposure-response-spline-plot/m-p/747069#M36360</guid>
      <dc:creator>mleslie</dc:creator>
      <dc:date>2021-06-10T16:07:14Z</dc:date>
    </item>
    <item>
      <title>Re: SAS code or macro for creating an exposure-response spline plot by Hazard Ratio</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/SAS-code-or-macro-for-creating-an-exposure-response-spline-plot/m-p/747136#M36361</link>
      <description>&lt;P&gt;I have no idea whether your CIs are valid or not. I suggest you post your data and SAS code if you want the community to provide feedback.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jun 2021 16:52:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/SAS-code-or-macro-for-creating-an-exposure-response-spline-plot/m-p/747136#M36361</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2021-06-10T16:52:06Z</dc:date>
    </item>
    <item>
      <title>Re: SAS code or macro for creating an exposure-response spline plot by Hazard Ratio</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/SAS-code-or-macro-for-creating-an-exposure-response-spline-plot/m-p/747182#M36362</link>
      <description>Thank you for your feedback; I will create a new post with example data and code regarding my question.</description>
      <pubDate>Thu, 10 Jun 2021 18:52:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/SAS-code-or-macro-for-creating-an-exposure-response-spline-plot/m-p/747182#M36362</guid>
      <dc:creator>mleslie</dc:creator>
      <dc:date>2021-06-10T18:52:24Z</dc:date>
    </item>
  </channel>
</rss>

