<?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: Restricted cubic splines / odds ratio   in SAS in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Restricted-cubic-splines-odds-ratio-in-SAS/m-p/891262#M352099</link>
    <description>&lt;P&gt;I also want to learn if there any statement to generate spline for odd ratios in SAS?&lt;/P&gt;</description>
    <pubDate>Sun, 27 Aug 2023 18:11:57 GMT</pubDate>
    <dc:creator>TomHsiung</dc:creator>
    <dc:date>2023-08-27T18:11:57Z</dc:date>
    <item>
      <title>Restricted cubic splines / odds ratio   in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Restricted-cubic-splines-odds-ratio-in-SAS/m-p/651974#M195670</link>
      <description>&lt;P&gt;Dear &lt;A href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13684" target="_blank" rel="noopener noreferrer"&gt;@Rick_SAS&lt;/A&gt; &lt;A href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13633" target="_blank" rel="noopener noreferrer"&gt;@StatDave_sas&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for this very helpful page!&lt;BR /&gt;I have used the EFFECT statement together with PROC LOGISTIC. But I haven't figured out how to modify the code in order to plot odds ratios on the y axis, instead of logit or predicted values. Is it possible to do that?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[example]&lt;/P&gt;&lt;P&gt;ods &lt;SPAN style="color: #0000ff;"&gt;select&lt;/SPAN&gt; ANOVA ParameterEstimates SplineKnots;&lt;BR /&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;proc logistic&lt;/SPAN&gt; &lt;SPAN style="color: #000080; font-weight: bold;"&gt;data&lt;/SPAN&gt;=cars;&lt;BR /&gt;&amp;nbsp; effect spl = spline&lt;SPAN style="color: #66cc66;"&gt;(&lt;/SPAN&gt;weight / details naturalcubic basis=tpf&lt;SPAN style="color: #66cc66;"&gt;(&lt;/SPAN&gt;noint&lt;SPAN style="color: #66cc66;"&gt;)&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; knotmethod=percentiles&lt;SPAN style="color: #66cc66;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #2e8b57; font-weight: bold;"&gt;5&lt;/SPAN&gt;&lt;SPAN style="color: #66cc66;"&gt;)&lt;/SPAN&gt; &lt;SPAN style="color: #66cc66;"&gt;)&lt;/SPAN&gt;;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; model mpg_city = spl / selection=none;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #0000ff;"&gt;output&lt;/SPAN&gt; out=SplineOut predicted=Fit;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;quit&lt;/SPAN&gt;;&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;proc sgplot&lt;/SPAN&gt; &lt;SPAN style="color: #000080; font-weight: bold;"&gt;data&lt;/SPAN&gt;=SplineOut noautolegend;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; scatter &lt;SPAN style="color: #0000ff;"&gt;x&lt;/SPAN&gt;=weight y=mpg_city;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; series &lt;SPAN style="color: #0000ff;"&gt;x&lt;/SPAN&gt;=weight y=Fit / lineattrs=&lt;SPAN style="color: #66cc66;"&gt;(&lt;/SPAN&gt;thickness=&lt;SPAN style="color: #2e8b57; font-weight: bold;"&gt;3&lt;/SPAN&gt; color=red&lt;SPAN style="color: #66cc66;"&gt;)&lt;/SPAN&gt;;&lt;BR /&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;run&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;[sample figure]&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="example.jpg" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/40173iC9973E253EAB1208/image-size/large?v=v2&amp;amp;px=999" role="button" title="example.jpg" alt="example.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 30 May 2020 13:19:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Restricted-cubic-splines-odds-ratio-in-SAS/m-p/651974#M195670</guid>
      <dc:creator>jina1</dc:creator>
      <dc:date>2020-05-30T13:19:47Z</dc:date>
    </item>
    <item>
      <title>Re: Restricted cubic splines / odds ratio   in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Restricted-cubic-splines-odds-ratio-in-SAS/m-p/891262#M352099</link>
      <description>&lt;P&gt;I also want to learn if there any statement to generate spline for odd ratios in SAS?&lt;/P&gt;</description>
      <pubDate>Sun, 27 Aug 2023 18:11:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Restricted-cubic-splines-odds-ratio-in-SAS/m-p/891262#M352099</guid>
      <dc:creator>TomHsiung</dc:creator>
      <dc:date>2023-08-27T18:11:57Z</dc:date>
    </item>
  </channel>
</rss>

