<?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: Conditional logistic regression: Output odds ratios for a continuous variable with a reference in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Conditional-logistic-regression-Output-odds-ratios-for-a/m-p/785268#M250589</link>
    <description>1. You can re-use the code from here, combining it with what you have written:&lt;BR /&gt;&lt;A href="https://communities.sas.com/t5/Statistical-Procedures/How-to-plot-Restricted-Cubic-Spline-in-PROC-LOGISTIC-BY/td-p/697273" target="_blank"&gt;https://communities.sas.com/t5/Statistical-Procedures/How-to-plot-Restricted-Cubic-Spline-in-PROC-LOGISTIC-BY/td-p/697273&lt;/A&gt; &lt;BR /&gt;2. "ods output ParameterEstimates=Lgsparms;" line from above link may take care of that.&lt;BR /&gt;Also you may try adding the "ods output Logistic.CLoddsPL = o;" before the logistic procedure and add "/orpvalue" option to the model statement. The p-values will be in the "o" dataset.&lt;BR /&gt;</description>
    <pubDate>Thu, 09 Dec 2021 20:54:09 GMT</pubDate>
    <dc:creator>pink_poodle</dc:creator>
    <dc:date>2021-12-09T20:54:09Z</dc:date>
    <item>
      <title>Conditional logistic regression: Output odds ratios for a continuous variable with a reference</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Conditional-logistic-regression-Output-odds-ratios-for-a/m-p/784744#M250415</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I am doing a matched (1:10) case-control study looking at the association between income (in ranks) and the risk of stroke.&lt;/P&gt;&lt;P&gt;I use conditional logistic regression:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;PROC LOGISTIC desc data = stroke;
strata = matched;
model stroke (event = '1') = INCOMErank;
RUN;&lt;/CODE&gt;&lt;/PRE&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI&gt;&lt;FONT color="#000000"&gt;matched = matching variable&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;stroke: 0 = no stroke, 1 = stroke&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;Now I wish to look at potential non-linearity using cubic splines with knots at the 20, 50, 80th percentile of INCOME rank. Moreover, I wish to output the odds ratio for each rank compared to the 50th percentile INCOME rank. My goal is to achieve a figure with odds ratios on the y-axis and income-ranks on the x-axis.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;How would you do cubic splines with knots in &lt;U&gt;&lt;EM&gt;conditional&lt;/EM&gt;&lt;/U&gt; logistic regression?&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;How do you obtain odds ratios comparing each rank to a reference for a continuous variable?&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Thank you for your time.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Dec 2021 20:11:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Conditional-logistic-regression-Output-odds-ratios-for-a/m-p/784744#M250415</guid>
      <dc:creator>N1d70</dc:creator>
      <dc:date>2021-12-07T20:11:10Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional logistic regression: Output odds ratios for a continuous variable with a reference</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Conditional-logistic-regression-Output-odds-ratios-for-a/m-p/785268#M250589</link>
      <description>1. You can re-use the code from here, combining it with what you have written:&lt;BR /&gt;&lt;A href="https://communities.sas.com/t5/Statistical-Procedures/How-to-plot-Restricted-Cubic-Spline-in-PROC-LOGISTIC-BY/td-p/697273" target="_blank"&gt;https://communities.sas.com/t5/Statistical-Procedures/How-to-plot-Restricted-Cubic-Spline-in-PROC-LOGISTIC-BY/td-p/697273&lt;/A&gt; &lt;BR /&gt;2. "ods output ParameterEstimates=Lgsparms;" line from above link may take care of that.&lt;BR /&gt;Also you may try adding the "ods output Logistic.CLoddsPL = o;" before the logistic procedure and add "/orpvalue" option to the model statement. The p-values will be in the "o" dataset.&lt;BR /&gt;</description>
      <pubDate>Thu, 09 Dec 2021 20:54:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Conditional-logistic-regression-Output-odds-ratios-for-a/m-p/785268#M250589</guid>
      <dc:creator>pink_poodle</dc:creator>
      <dc:date>2021-12-09T20:54:09Z</dc:date>
    </item>
  </channel>
</rss>

