<?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 for opioid overdose in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Interrupted-time-series-for-opioid-overdose/m-p/924230#M363797</link>
    <description>&lt;A href="https://support.sas.com/kb/70498" target="_blank"&gt;https://support.sas.com/kb/70498&lt;/A&gt;</description>
    <pubDate>Sat, 13 Apr 2024 07:11:46 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2024-04-13T07:11:46Z</dc:date>
    <item>
      <title>Interrupted time series for opioid overdose</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Interrupted-time-series-for-opioid-overdose/m-p/924209#M363787</link>
      <description>&lt;P&gt;I have data for opioid overdose before the pandemic and after pandemic. I have ran my data through regression with dummy variable being month without covid 0 and months with covid 1.&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I am very new to sas and this week I been reading about interrupted time series using proc autoreg or poison regression. I want to try to run all my data again using the interrupted time series. For my data I am using quarters for the years 2017-2021 labeling them 1-20. Then for my dependent variable I am using number of overdose deaths. For months representing covid 1 and months without covid 0. And lastly pre-and post which pre is 0 and post months are 1,2,3….7.My data looks like this&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;6&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;8&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;9&lt;/TD&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;7&lt;/TD&gt;&lt;TD&gt;6&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;that is just sample of my data.&lt;/P&gt;&lt;P&gt;first column my = y&lt;/P&gt;&lt;P&gt;second column = months&lt;/P&gt;&lt;P&gt;third column = pre covid and onset covid for the months&amp;nbsp;&lt;/P&gt;&lt;P&gt;fourth column = onset of covid&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;y=Bo+B1T+B2X+B3TX&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i tried this code&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;Data y;
Input y time covid intervention;
Cards;

Proc autoreg data=y
Model y=time covid intervention/ nag=2 method=ml;
Run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;But I think I am doing something wrong because the results are off. Thanks for any help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Apr 2024 22:29:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Interrupted-time-series-for-opioid-overdose/m-p/924209#M363787</guid>
      <dc:creator>Janinka</dc:creator>
      <dc:date>2024-04-12T22:29:46Z</dc:date>
    </item>
    <item>
      <title>Re: Interrupted time series for opioid overdose</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Interrupted-time-series-for-opioid-overdose/m-p/924230#M363797</link>
      <description>&lt;A href="https://support.sas.com/kb/70498" target="_blank"&gt;https://support.sas.com/kb/70498&lt;/A&gt;</description>
      <pubDate>Sat, 13 Apr 2024 07:11:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Interrupted-time-series-for-opioid-overdose/m-p/924230#M363797</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2024-04-13T07:11:46Z</dc:date>
    </item>
  </channel>
</rss>

