<?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: Trend test for Incidence rates over the years in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Trend-test-for-Incidence-rates-over-the-years/m-p/234540#M54954</link>
    <description>&lt;P&gt;Did something happen around 2001?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/846iF607025A62C2258E/image-size/medium?v=mpbl-1&amp;amp;px=-1" border="0" alt="SGPlot1.png" title="SGPlot1.png" align="left" /&gt;&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;
&lt;P&gt;&amp;nbsp;&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;
&lt;P&gt;&amp;nbsp;&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;
&lt;P&gt;&amp;nbsp;&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If so you should test&amp;nbsp;before and after separately:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname xl Excel "&amp;amp;sasforum.\Datasets\Trendtest.xlsx" access=readonly;

proc sql;
create table trendtest as
select *, year&amp;gt;=2001 as period from xl.'Sheet1$'n;
quit;

proc sgplot data=trendtest;
scatter x=year y=amortality_pan;
refline 2001 / axis=x;
run;

proc corr data=trendtest kendall;
by period;
var year; with amortality_pan;
run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 13 Nov 2015 04:28:23 GMT</pubDate>
    <dc:creator>PGStats</dc:creator>
    <dc:date>2015-11-13T04:28:23Z</dc:date>
    <item>
      <title>Trend test for Incidence rates over the years</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Trend-test-for-Incidence-rates-over-the-years/m-p/234427#M54937</link>
      <description>&lt;DIV class="lia-message-heading lia-component-message-header"&gt;
&lt;DIV class="lia-quilt-row lia-quilt-row-standard"&gt;
&lt;DIV class="lia-quilt-column lia-quilt-column-20 lia-quilt-column-left"&gt;
&lt;DIV class="lia-quilt-column-alley lia-quilt-column-alley-left"&gt;
&lt;DIV class="lia-message-subject"&gt;
&lt;H1&gt;&amp;nbsp;&lt;/H1&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P class="lia-message-dates lia-message-post-date lia-component-post-date-last-edited"&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV id="messagebodydisplay_0" class="lia-message-body"&gt;
&lt;DIV class="lia-message-body-content"&gt;
&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I need advice about how to calculate a significance test (trend test) for comparing the incidence rates over the years. I need to comment on whether there is a significant increase or decreas (with p-value for a trend) for incidence rates over the years.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please see the attached data. My denominator for incidence is 100,000 for all.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would really appreciate if anyone can help me with the SAS code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Satish&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 12 Nov 2015 18:10:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Trend-test-for-Incidence-rates-over-the-years/m-p/234427#M54937</guid>
      <dc:creator>smunigala</dc:creator>
      <dc:date>2015-11-12T18:10:47Z</dc:date>
    </item>
    <item>
      <title>Re: Trend test for Incidence rates over the years</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Trend-test-for-Incidence-rates-over-the-years/m-p/234445#M54940</link>
      <description>&lt;P&gt;You should give more information regarding the calculations.&amp;nbsp; While I'm sure there are several that know exactly what you want I do no.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Nov 2015 19:05:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Trend-test-for-Incidence-rates-over-the-years/m-p/234445#M54940</guid>
      <dc:creator>Steelers_In_DC</dc:creator>
      <dc:date>2015-11-12T19:05:40Z</dc:date>
    </item>
    <item>
      <title>Re: Trend test for Incidence rates over the years</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Trend-test-for-Incidence-rates-over-the-years/m-p/234514#M54947</link>
      <description>&lt;P&gt;What have you tried, so far?&lt;/P&gt;</description>
      <pubDate>Thu, 12 Nov 2015 21:56:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Trend-test-for-Incidence-rates-over-the-years/m-p/234514#M54947</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2015-11-12T21:56:31Z</dc:date>
    </item>
    <item>
      <title>Re: Trend test for Incidence rates over the years</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Trend-test-for-Incidence-rates-over-the-years/m-p/234528#M54951</link>
      <description>&lt;P&gt;Thanks for the reply. The incidence rates are the trends for acute pancreatitis deaths nationally over the years. I wanted to know if there is an increase or decrease in trend over the years. The incidence rates are adjusted for 2010 population (national US population).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Nov 2015 23:23:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Trend-test-for-Incidence-rates-over-the-years/m-p/234528#M54951</guid>
      <dc:creator>smunigala</dc:creator>
      <dc:date>2015-11-12T23:23:06Z</dc:date>
    </item>
    <item>
      <title>Re: Trend test for Incidence rates over the years</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Trend-test-for-Incidence-rates-over-the-years/m-p/234529#M54952</link>
      <description>&lt;P&gt;I have not done the trend test for comparing rates over the years to check for significance. However, I did Cochran- Armitage Trend test previously for categorical variable. So I am not sure how to do this. I looked up some online blogs about linear regression analysis but not entirely sure. I hope this helps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 12 Nov 2015 23:25:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Trend-test-for-Incidence-rates-over-the-years/m-p/234529#M54952</guid>
      <dc:creator>smunigala</dc:creator>
      <dc:date>2015-11-12T23:25:24Z</dc:date>
    </item>
    <item>
      <title>Re: Trend test for Incidence rates over the years</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Trend-test-for-Incidence-rates-over-the-years/m-p/234538#M54953</link>
      <description>&lt;P&gt;A popular test for detecting trends in timeseries is the Kendall Tau-b correlation, available in proc corr and proc freq :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
proc corr data=trendtest kendall;
var year; with amortality_pan;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Nov 2015 04:04:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Trend-test-for-Incidence-rates-over-the-years/m-p/234538#M54953</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2015-11-13T04:04:19Z</dc:date>
    </item>
    <item>
      <title>Re: Trend test for Incidence rates over the years</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Trend-test-for-Incidence-rates-over-the-years/m-p/234540#M54954</link>
      <description>&lt;P&gt;Did something happen around 2001?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/846iF607025A62C2258E/image-size/medium?v=mpbl-1&amp;amp;px=-1" border="0" alt="SGPlot1.png" title="SGPlot1.png" align="left" /&gt;&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;
&lt;P&gt;&amp;nbsp;&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;
&lt;P&gt;&amp;nbsp;&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;
&lt;P&gt;&amp;nbsp;&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If so you should test&amp;nbsp;before and after separately:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname xl Excel "&amp;amp;sasforum.\Datasets\Trendtest.xlsx" access=readonly;

proc sql;
create table trendtest as
select *, year&amp;gt;=2001 as period from xl.'Sheet1$'n;
quit;

proc sgplot data=trendtest;
scatter x=year y=amortality_pan;
refline 2001 / axis=x;
run;

proc corr data=trendtest kendall;
by period;
var year; with amortality_pan;
run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 13 Nov 2015 04:28:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Trend-test-for-Incidence-rates-over-the-years/m-p/234540#M54954</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2015-11-13T04:28:23Z</dc:date>
    </item>
    <item>
      <title>Re: Trend test for Incidence rates over the years</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Trend-test-for-Incidence-rates-over-the-years/m-p/236272#M55220</link>
      <description>&lt;P&gt;Hi PGStats,&lt;/P&gt;
&lt;P&gt;Thanks for the response. I am not sure if there was anything significant in 2001 but recently over the years, the trends decreased due to improved diagnostic tests.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Satish&lt;/P&gt;</description>
      <pubDate>Tue, 24 Nov 2015 20:46:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Trend-test-for-Incidence-rates-over-the-years/m-p/236272#M55220</guid>
      <dc:creator>smunigala</dc:creator>
      <dc:date>2015-11-24T20:46:24Z</dc:date>
    </item>
    <item>
      <title>Re: Trend test for Incidence rates over the years</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Trend-test-for-Incidence-rates-over-the-years/m-p/331013#M62662</link>
      <description>&lt;P&gt;Hi, I have a similar question like this. After doing this step, how could I interpret the 0.4463? What is the trend for the data? Since the prevalence or the incidence are not normally distributed, could I just use Simple Regression Model and get the coefficient for the trend? Or is there any other suggestion for this situation? I have a sample data like below. Thanks a lot.&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;&lt;STRONG&gt;Kendall&amp;nbsp;Tau&amp;nbsp;b&amp;nbsp;Correlation&amp;nbsp;Coefficients,&amp;nbsp;N&amp;nbsp;=&amp;nbsp;41&lt;BR /&gt;Prob&amp;nbsp;&amp;gt;&amp;nbsp;|tau|&amp;nbsp;under&amp;nbsp;H0:&amp;nbsp;Tau=0&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&lt;STRONG&gt;Year&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;&lt;STRONG&gt;Prevalence&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;0.44634&lt;BR /&gt;&amp;lt;.0001&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;TABLE border="0" cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Year&lt;/TD&gt;&lt;TD&gt;Prevalence&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1974&lt;/TD&gt;&lt;TD&gt;16.943&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1975&lt;/TD&gt;&lt;TD&gt;19.6&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1976&lt;/TD&gt;&lt;TD&gt;18.934&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1977&lt;/TD&gt;&lt;TD&gt;18.48&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1978&lt;/TD&gt;&lt;TD&gt;19.924&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1979&lt;/TD&gt;&lt;TD&gt;12.369&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1980&lt;/TD&gt;&lt;TD&gt;17.302&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1981&lt;/TD&gt;&lt;TD&gt;15.954&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1982&lt;/TD&gt;&lt;TD&gt;16.75&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1983&lt;/TD&gt;&lt;TD&gt;17.184&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1984&lt;/TD&gt;&lt;TD&gt;17.722&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1985&lt;/TD&gt;&lt;TD&gt;19.008&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1986&lt;/TD&gt;&lt;TD&gt;18.452&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1987&lt;/TD&gt;&lt;TD&gt;16.744&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1988&lt;/TD&gt;&lt;TD&gt;17.029&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1989&lt;/TD&gt;&lt;TD&gt;17.643&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1990&lt;/TD&gt;&lt;TD&gt;17.179&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Wed, 08 Feb 2017 22:26:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Trend-test-for-Incidence-rates-over-the-years/m-p/331013#M62662</guid>
      <dc:creator>Totoro</dc:creator>
      <dc:date>2017-02-08T22:26:59Z</dc:date>
    </item>
    <item>
      <title>Re: Trend test for Incidence rates over the years</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Trend-test-for-Incidence-rates-over-the-years/m-p/331070#M62678</link>
      <description>&lt;P&gt;You will get a lot more attention if you submit your question as a new topic.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can get a robust estimate of the slope called &lt;EM&gt;Sen's slope&lt;/EM&gt; (or the &lt;SPAN&gt;&lt;EM&gt;Kendall slope estimator&lt;/EM&gt;)&lt;/SPAN&gt;&amp;nbsp;as:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
create table slope as
select 
    median( (b.prevalence-a.prevalence) / (b.year-a.year) ) as senSlope
from
    myData as a inner join 
    myData as b on a.year &amp;lt; b.year;
select * from slope;
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 09 Feb 2017 05:45:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Trend-test-for-Incidence-rates-over-the-years/m-p/331070#M62678</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2017-02-09T05:45:29Z</dc:date>
    </item>
    <item>
      <title>Re: Trend test for Incidence rates over the years</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Trend-test-for-Incidence-rates-over-the-years/m-p/331193#M62691</link>
      <description>&lt;P&gt;HI PGStats,&lt;/P&gt;
&lt;P&gt;Can you please respond to my other post "Trend Test for Incidence"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks you!&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2017 15:32:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Trend-test-for-Incidence-rates-over-the-years/m-p/331193#M62691</guid>
      <dc:creator>smunigala</dc:creator>
      <dc:date>2017-02-09T15:32:16Z</dc:date>
    </item>
    <item>
      <title>Re: Trend test for Incidence rates over the years</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Trend-test-for-Incidence-rates-over-the-years/m-p/332323#M62772</link>
      <description>&lt;P&gt;Thanks a lot. It works and report a number 0.189. Could I interpret 0.189 as each year the prevalence is increasing 0.189 (the annual year of change). Is that correct? I really appreciate for your help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Feb 2017 20:16:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Trend-test-for-Incidence-rates-over-the-years/m-p/332323#M62772</guid>
      <dc:creator>Totoro</dc:creator>
      <dc:date>2017-02-13T20:16:00Z</dc:date>
    </item>
    <item>
      <title>Re: Trend test for Incidence rates over the years</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Trend-test-for-Incidence-rates-over-the-years/m-p/332372#M62774</link>
      <description>&lt;P&gt;I( guess so. But I haven't seen your code, or your full dataset. Make sure you understand what you are doing.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Feb 2017 21:52:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Trend-test-for-Incidence-rates-over-the-years/m-p/332372#M62774</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2017-02-13T21:52:42Z</dc:date>
    </item>
  </channel>
</rss>

