<?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: p value for trend using Logistic Regression in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/p-value-for-trend-using-Logistic-Regression/m-p/694238#M33513</link>
    <description>&lt;P&gt;If you want to compare two odds ratios, then you must have a log odds for each of the two groups at two times or under two different treatments or conditions. The GROUP*TIME parameter below is the log ratio of the two odds ratios, so exponentiating it estimates the ratio of the two odds ratios.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc logistic;
class group time;
model y = group time group*time;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Similarly, you can test for trend of several odds ratios. The following tests the trend over years assuming independent observations. Note that YEAR is not in the CLASS statement.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc logistic;
class group;
model y = group year group*year;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 26 Oct 2020 14:02:28 GMT</pubDate>
    <dc:creator>StatDave</dc:creator>
    <dc:date>2020-10-26T14:02:28Z</dc:date>
    <item>
      <title>p value for trend using Logistic Regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/p-value-for-trend-using-Logistic-Regression/m-p/694068#M33499</link>
      <description>&lt;P&gt;How do I get the p-value for trend, with the Odds Ratio using a multivariate Logistic Regression? I found a &lt;A href="https://www.lexjansen.com/pharmasug/2007/sp/SP05.pdf" target="_self"&gt;guide&lt;/A&gt; that explained how to do this for one predictor variable. It explained that you would use the Score test in the Testing Global Null Hypothesis table. (The score test is equivalent to the Cochran-Armitage trend test).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My issue is approaching this when other covariates are added to the model. Yes I can run a logistic regression with my main predictor - lets call that "A," for example, and say I want to control for age. How do I get the p-value for trend in this case? &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(My outcome is binary do I have to use a logistic regression).&lt;/P&gt;</description>
      <pubDate>Sun, 25 Oct 2020 02:41:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/p-value-for-trend-using-Logistic-Regression/m-p/694068#M33499</guid>
      <dc:creator>ajames2020</dc:creator>
      <dc:date>2020-10-25T02:41:35Z</dc:date>
    </item>
    <item>
      <title>Re: p value for trend using Logistic Regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/p-value-for-trend-using-Logistic-Regression/m-p/694071#M33500</link>
      <description>&lt;P&gt;The p-value for a linear trend is in the Analysis of Maximum Likelihood Estimates table. Show your code for more detailed advice.&lt;/P&gt;</description>
      <pubDate>Sun, 25 Oct 2020 03:14:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/p-value-for-trend-using-Logistic-Regression/m-p/694071#M33500</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2020-10-25T03:14:22Z</dc:date>
    </item>
    <item>
      <title>Re: p value for trend using Logistic Regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/p-value-for-trend-using-Logistic-Regression/m-p/694098#M33504</link>
      <description>&lt;P&gt;The p-value for linear trend is &lt;STRONG&gt;not&lt;/STRONG&gt; in the Maximum Likelihood tables. That table has the the p-value for the predictor variable in reference to the outcome variable, or one level of a predictor compared to the other in reference to the outcome.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 25 Oct 2020 13:41:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/p-value-for-trend-using-Logistic-Regression/m-p/694098#M33504</guid>
      <dc:creator>ajames2020</dc:creator>
      <dc:date>2020-10-25T13:41:45Z</dc:date>
    </item>
    <item>
      <title>Re: p value for trend using Logistic Regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/p-value-for-trend-using-Logistic-Regression/m-p/694141#M33508</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/322142"&gt;@ajames2020&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;The p-value for linear trend is &lt;STRONG&gt;not&lt;/STRONG&gt; in the Maximum Likelihood tables. That table has the the p-value for the predictor variable in reference to the outcome variable, or one level of a predictor compared to the other in reference to the outcome.&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Might indicate that your code did not request it. Or the data won't support the request.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Which is why we want to see the code, and best is from the log to include any notes about numbers of observations used. Copy the text from the log including the code and any messages or notes, paste into a code box opened on the&amp;nbsp; forum using the &amp;lt;/&amp;gt; icon at the top of the message window.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Oct 2020 00:20:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/p-value-for-trend-using-Logistic-Regression/m-p/694141#M33508</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-10-26T00:20:41Z</dc:date>
    </item>
    <item>
      <title>Re: p value for trend using Logistic Regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/p-value-for-trend-using-Logistic-Regression/m-p/694238#M33513</link>
      <description>&lt;P&gt;If you want to compare two odds ratios, then you must have a log odds for each of the two groups at two times or under two different treatments or conditions. The GROUP*TIME parameter below is the log ratio of the two odds ratios, so exponentiating it estimates the ratio of the two odds ratios.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc logistic;
class group time;
model y = group time group*time;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Similarly, you can test for trend of several odds ratios. The following tests the trend over years assuming independent observations. Note that YEAR is not in the CLASS statement.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc logistic;
class group;
model y = group year group*year;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 26 Oct 2020 14:02:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/p-value-for-trend-using-Logistic-Regression/m-p/694238#M33513</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2020-10-26T14:02:28Z</dc:date>
    </item>
  </channel>
</rss>

