<?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: linear and quadratic trend analyses using logistic regression models in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/linear-and-quadratic-trend-analyses-using-logistic-regression/m-p/603488#M16955</link>
    <description>&lt;P&gt;You could check PROC FREQ;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc freq.....&lt;/P&gt;
&lt;P&gt;model good_bad*year/&lt;STRONG&gt; trend&lt;/STRONG&gt; ;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;</description>
    <pubDate>Tue, 12 Nov 2019 11:59:56 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2019-11-12T11:59:56Z</dc:date>
    <item>
      <title>linear and quadratic trend analyses using logistic regression models</title>
      <link>https://communities.sas.com/t5/New-SAS-User/linear-and-quadratic-trend-analyses-using-logistic-regression/m-p/603273#M16917</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I plotted a trend analysis graph over time for one of my variables in the dataset. Now i wanted to see if the trend is &lt;STRONG&gt;significantly&lt;/STRONG&gt; increasing or decreasing over time( I wanted to see the&amp;nbsp; p-value to know if the trend is significant). But i dont know how to do this. Any help is much appreciated.&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="Capture.JPG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/33832iE7CB2E4CC9623596/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!!&lt;/P&gt;</description>
      <pubDate>Mon, 11 Nov 2019 16:30:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/linear-and-quadratic-trend-analyses-using-logistic-regression/m-p/603273#M16917</guid>
      <dc:creator>supriyamalliduu</dc:creator>
      <dc:date>2019-11-11T16:30:26Z</dc:date>
    </item>
    <item>
      <title>Re: linear and quadratic trend analyses using logistic regression models</title>
      <link>https://communities.sas.com/t5/New-SAS-User/linear-and-quadratic-trend-analyses-using-logistic-regression/m-p/603302#M16919</link>
      <description>&lt;P&gt;Since we can't see the raw data, let me just say that when the vertical axis is a continuous interval, such as you show 13% to 18%, and that's all the information you have about what happened in each year, this is not logistic regression, it is ordinary least squares regression. You can fit a linear ordinary least squares model and see if the slope due to year is statistically significant.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Again, because you haven't shown us the RAW data, if the percent each year is computed, for example, as 9 events out of 50 (so you know the numerator and denominator in each year), then you should fit this via a logistic regression, with one X variable (YEAR), using the &lt;A href="https://documentation.sas.com/?docsetId=statug&amp;amp;docsetVersion=15.1&amp;amp;docsetTarget=statug_logistic_syntax22.htm&amp;amp;locale=en" target="_self"&gt;"events/trials" form of the MODEL statement&lt;/A&gt;. In this case, again, you have to find the slope of YEAR to see if it is statistically significant.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Nov 2019 18:26:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/linear-and-quadratic-trend-analyses-using-logistic-regression/m-p/603302#M16919</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-11-11T18:26:09Z</dc:date>
    </item>
    <item>
      <title>Re: linear and quadratic trend analyses using logistic regression models</title>
      <link>https://communities.sas.com/t5/New-SAS-User/linear-and-quadratic-trend-analyses-using-logistic-regression/m-p/603312#M16923</link>
      <description>&lt;P&gt;Thanks for the response.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The raw data is from a survey and I am actually using a proc survey freq procedure to compute the weighted frequencyies and percentages. The data i used for plotting looks like:&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="Capture.JPG" style="width: 189px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/33836iE7E32A89F17A698F/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do u think ordinary least squares model is the solution for us to know if the trend is significant based on this data?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Supriya&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Nov 2019 19:26:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/linear-and-quadratic-trend-analyses-using-logistic-regression/m-p/603312#M16923</guid>
      <dc:creator>supriyamalliduu</dc:creator>
      <dc:date>2019-11-11T19:26:34Z</dc:date>
    </item>
    <item>
      <title>Re: linear and quadratic trend analyses using logistic regression models</title>
      <link>https://communities.sas.com/t5/New-SAS-User/linear-and-quadratic-trend-analyses-using-logistic-regression/m-p/603329#M16924</link>
      <description>&lt;P&gt;In this case, PROC SURVEYLOGISTIC ought to be used.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Nov 2019 19:57:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/linear-and-quadratic-trend-analyses-using-logistic-regression/m-p/603329#M16924</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-11-11T19:57:27Z</dc:date>
    </item>
    <item>
      <title>Re: linear and quadratic trend analyses using logistic regression models</title>
      <link>https://communities.sas.com/t5/New-SAS-User/linear-and-quadratic-trend-analyses-using-logistic-regression/m-p/603334#M16925</link>
      <description>&lt;P&gt;Do you only have 6 data points in the entirety of your dataset?&lt;/P&gt;
&lt;P&gt;If so, I would consider using the raw data and a Cochrane-Armitage test which test for increasing/decreasing trends. You don't have a ton of data to support anything beyond this. You could also do a basic linear regression but I wouldn't be pushing to use anything super complex with 6 data points.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/299168"&gt;@supriyamalliduu&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Thanks for the response.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The raw data is from a survey and I am actually using a proc survey freq procedure to compute the weighted frequencyies and percentages. The data i used for plotting looks like:&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="Capture.JPG" style="width: 189px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/33836iE7E32A89F17A698F/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do u think ordinary least squares model is the solution for us to know if the trend is significant based on this data?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Supriya&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Nov 2019 20:08:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/linear-and-quadratic-trend-analyses-using-logistic-regression/m-p/603334#M16925</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-11-11T20:08:49Z</dc:date>
    </item>
    <item>
      <title>Re: linear and quadratic trend analyses using logistic regression models</title>
      <link>https://communities.sas.com/t5/New-SAS-User/linear-and-quadratic-trend-analyses-using-logistic-regression/m-p/603488#M16955</link>
      <description>&lt;P&gt;You could check PROC FREQ;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc freq.....&lt;/P&gt;
&lt;P&gt;model good_bad*year/&lt;STRONG&gt; trend&lt;/STRONG&gt; ;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Nov 2019 11:59:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/linear-and-quadratic-trend-analyses-using-logistic-regression/m-p/603488#M16955</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2019-11-12T11:59:56Z</dc:date>
    </item>
  </channel>
</rss>

