<?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: Interrupted time series with proc autoreg in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Interrupted-time-series-with-proc-autoreg/m-p/820360#M40571</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Overall, it seems OK to me.&lt;/P&gt;
&lt;P&gt;Although I generally do not use this effect in ITS (Interrupted Time Series Regression):&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;time_aft_int = 1-12 starting at month 25&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I usually code the intervention variable itself as :&lt;/SPAN&gt;&lt;/P&gt;
&lt;UL class="lia-list-style-type-disc"&gt;
&lt;LI&gt;&lt;SPAN&gt;intervention&amp;nbsp;: always 0 , but a 1-pulse at month 24&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;intervention&amp;nbsp;: always 0 , but a constant 1 as from month 24 throughout until end-of-series&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;intervention&amp;nbsp;: always 0 , but a 1 for month 24, a 2 for month 25, a 3 for month 26 and so on ... (allows for trend changes)&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;other schemas are possible&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;SPAN&gt;It all depends on the effect you think your intervention has:&lt;/SPAN&gt;&lt;/P&gt;
&lt;UL class="lia-list-style-type-square"&gt;
&lt;LI&gt;&lt;SPAN&gt;An outlier having effect only on the moment itself.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;A structural break in level&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;A structural break in level and in trend&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;A structural break in level, trend and variance&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;...&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;SPAN&gt;See also here (PROC MODEL solution) :&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Interrupted Time Series Analysis for Single Series and Comparative Designs:&lt;BR /&gt;&lt;A href="https://www.sas.com/content/dam/SAS/en_ca/User%20Group%20Presentations/Health-User-Groups/ITS_SAS.pdf" target="_blank"&gt;https://www.sas.com/content/dam/SAS/en_ca/User%20Group%20Presentations/Health-User-Groups/ITS_SAS.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;See also here (other PROC solutions) :&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;SAS Global Forum 2020 : Paper 4674-2020&lt;BR /&gt;Time After Time: Difference-in-Differences and Interrupted Time Series Models in SAS®&lt;BR /&gt;E Margaret Warton, Kaiser Permanente Northern California Division of Research&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.sas.com/content/dam/SAS/support/en/sas-global-forum-proceedings/2020/4674-2020.pdf" target="_blank"&gt;https://www.sas.com/content/dam/SAS/support/en/sas-global-forum-proceedings/2020/4674-2020.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Koen&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 25 Jun 2022 09:57:57 GMT</pubDate>
    <dc:creator>sbxkoenk</dc:creator>
    <dc:date>2022-06-25T09:57:57Z</dc:date>
    <item>
      <title>Interrupted time series with proc autoreg</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Interrupted-time-series-with-proc-autoreg/m-p/820023#M40547</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;After a discussion, I need a little reassurance that my ITS approach for this relatively simplistic model is appropriate. I have observed rates from 1 location over 36 months with an intervention at 24/25 and no control group. Fixed effects so I opted not to use glimmix, however the base model results between the two are identical (if I do not include a random _residual_ or intercept in the mixed model). Below is (1) a base model and (2) an example adjusting for autocorrelation and heteroscedastic variance.&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;Would appreciate your thoughts,&lt;/P&gt;&lt;P&gt;&lt;U&gt;variables&lt;/U&gt;&lt;/P&gt;&lt;P&gt;all_abx_rate = rate&amp;nbsp;&lt;/P&gt;&lt;P&gt;month = 1-36&lt;/P&gt;&lt;P&gt;intervention = 0 or 1&lt;/P&gt;&lt;P&gt;time_aft_int = 1-12 starting at month 25&lt;/P&gt;&lt;P&gt;&lt;U&gt;base:&lt;/U&gt;&lt;/P&gt;&lt;P&gt;proc&amp;nbsp;autoreg&amp;nbsp;data=have&amp;nbsp;outest=allabx_param_estmts;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; model&amp;nbsp;all_abx_rate = month intervention time_aft_int;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;where location=4;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; output&amp;nbsp;out=allabx_areg&amp;nbsp;pm=trendhat&amp;nbsp;LCLM=lclm&amp;nbsp;UCLM=uclm&amp;nbsp;p=yhat&amp;nbsp;LCL=lcl&amp;nbsp;UCL=ucl;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;U&gt;adjusted:&lt;/U&gt;&lt;/P&gt;&lt;P&gt;proc&amp;nbsp;autoreg&amp;nbsp;data=have&amp;nbsp;outest=allabx_param_estmts;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; model&amp;nbsp;all_abx_rate = month intervention time_aft_int /&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;method=ml&amp;nbsp;nlag=13&amp;nbsp;backstep&amp;nbsp;dwprob&amp;nbsp;loglikl&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;garch=(q=1,&amp;nbsp;p=1);​&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;where location=4;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;output&amp;nbsp;out=allabx_areg&amp;nbsp;pm=trendhat&amp;nbsp;LCLM=lclm&amp;nbsp;UCLM=uclm&amp;nbsp;p=yhat&amp;nbsp;LCL=lcl&amp;nbsp;UCL=ucl;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you all!!&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jun 2022 14:17:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Interrupted-time-series-with-proc-autoreg/m-p/820023#M40547</guid>
      <dc:creator>Levi_M</dc:creator>
      <dc:date>2022-06-23T14:17:57Z</dc:date>
    </item>
    <item>
      <title>Re: Interrupted time series with proc autoreg</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Interrupted-time-series-with-proc-autoreg/m-p/820360#M40571</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Overall, it seems OK to me.&lt;/P&gt;
&lt;P&gt;Although I generally do not use this effect in ITS (Interrupted Time Series Regression):&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;time_aft_int = 1-12 starting at month 25&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I usually code the intervention variable itself as :&lt;/SPAN&gt;&lt;/P&gt;
&lt;UL class="lia-list-style-type-disc"&gt;
&lt;LI&gt;&lt;SPAN&gt;intervention&amp;nbsp;: always 0 , but a 1-pulse at month 24&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;intervention&amp;nbsp;: always 0 , but a constant 1 as from month 24 throughout until end-of-series&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;intervention&amp;nbsp;: always 0 , but a 1 for month 24, a 2 for month 25, a 3 for month 26 and so on ... (allows for trend changes)&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;other schemas are possible&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;SPAN&gt;It all depends on the effect you think your intervention has:&lt;/SPAN&gt;&lt;/P&gt;
&lt;UL class="lia-list-style-type-square"&gt;
&lt;LI&gt;&lt;SPAN&gt;An outlier having effect only on the moment itself.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;A structural break in level&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;A structural break in level and in trend&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;A structural break in level, trend and variance&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;...&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;SPAN&gt;See also here (PROC MODEL solution) :&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Interrupted Time Series Analysis for Single Series and Comparative Designs:&lt;BR /&gt;&lt;A href="https://www.sas.com/content/dam/SAS/en_ca/User%20Group%20Presentations/Health-User-Groups/ITS_SAS.pdf" target="_blank"&gt;https://www.sas.com/content/dam/SAS/en_ca/User%20Group%20Presentations/Health-User-Groups/ITS_SAS.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;See also here (other PROC solutions) :&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;SAS Global Forum 2020 : Paper 4674-2020&lt;BR /&gt;Time After Time: Difference-in-Differences and Interrupted Time Series Models in SAS®&lt;BR /&gt;E Margaret Warton, Kaiser Permanente Northern California Division of Research&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.sas.com/content/dam/SAS/support/en/sas-global-forum-proceedings/2020/4674-2020.pdf" target="_blank"&gt;https://www.sas.com/content/dam/SAS/support/en/sas-global-forum-proceedings/2020/4674-2020.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Koen&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 25 Jun 2022 09:57:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Interrupted-time-series-with-proc-autoreg/m-p/820360#M40571</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2022-06-25T09:57:57Z</dc:date>
    </item>
    <item>
      <title>Re: Interrupted time series with proc autoreg</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Interrupted-time-series-with-proc-autoreg/m-p/828668#M41021</link>
      <description>&lt;P&gt;Hi Koen,&lt;/P&gt;&lt;P&gt;I wanted to revisit your answer with a question:&lt;/P&gt;&lt;P&gt;You mention not using the effect "time_aft_int" in ITS, however, you list it under schemas to "allow for trend changes" and I see it is also reference in the "PROC MODEL" solution paper.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you clarify why you would not use it but it is included in references?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Aug 2022 12:33:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Interrupted-time-series-with-proc-autoreg/m-p/828668#M41021</guid>
      <dc:creator>Levi_M</dc:creator>
      <dc:date>2022-08-15T12:33:50Z</dc:date>
    </item>
  </channel>
</rss>

