<?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 Plotting Segmented regression analysis of interrupted time series data in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Plotting-Segmented-regression-analysis-of-interrupted-time/m-p/337162#M11701</link>
    <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;I was wondering how best to tackle the following dataset regarding antibiotic utilization and a policy intervention:&lt;/P&gt;&lt;P&gt;Date &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Abx_Utilization &amp;nbsp; &amp;nbsp; &amp;nbsp; Intervention &amp;nbsp; Time&lt;/P&gt;&lt;P&gt;Feb2013 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 365 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;Jan2017 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 456 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 48&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The antibiotic utlization is a rate, the intervention was implemented on Feb 2016 - i have coded '0' for time before intervention and '1' as time after intervention.&lt;/P&gt;&lt;P&gt;I would like to plot abx_utilization*time and show the trendline without the intervention and the trendline with the intervention. Similar to this example listed previously by a user (Figure 1a&amp;nbsp;&lt;A href="https://www.cdc.gov/pcd/issues/2013/12_0268.htm" target="_blank"&gt;https://www.cdc.gov/pcd/issues/2013/12_0268.htm&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks for the insights!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 01 Mar 2017 22:24:41 GMT</pubDate>
    <dc:creator>sumitraybardhan</dc:creator>
    <dc:date>2017-03-01T22:24:41Z</dc:date>
    <item>
      <title>Plotting Segmented regression analysis of interrupted time series data</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Plotting-Segmented-regression-analysis-of-interrupted-time/m-p/337162#M11701</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;I was wondering how best to tackle the following dataset regarding antibiotic utilization and a policy intervention:&lt;/P&gt;&lt;P&gt;Date &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Abx_Utilization &amp;nbsp; &amp;nbsp; &amp;nbsp; Intervention &amp;nbsp; Time&lt;/P&gt;&lt;P&gt;Feb2013 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 365 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;Jan2017 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 456 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 48&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The antibiotic utlization is a rate, the intervention was implemented on Feb 2016 - i have coded '0' for time before intervention and '1' as time after intervention.&lt;/P&gt;&lt;P&gt;I would like to plot abx_utilization*time and show the trendline without the intervention and the trendline with the intervention. Similar to this example listed previously by a user (Figure 1a&amp;nbsp;&lt;A href="https://www.cdc.gov/pcd/issues/2013/12_0268.htm" target="_blank"&gt;https://www.cdc.gov/pcd/issues/2013/12_0268.htm&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks for the insights!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Mar 2017 22:24:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Plotting-Segmented-regression-analysis-of-interrupted-time/m-p/337162#M11701</guid>
      <dc:creator>sumitraybardhan</dc:creator>
      <dc:date>2017-03-01T22:24:41Z</dc:date>
    </item>
    <item>
      <title>Re: Plotting Segmented regression analysis of interrupted time series data</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Plotting-Segmented-regression-analysis-of-interrupted-time/m-p/337168#M11702</link>
      <description>&lt;P&gt;Try something like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc sgplot data=intervention;&lt;/P&gt;
&lt;P&gt;reg x=date y=abx_utilization / nomarkers group=intervention;&lt;/P&gt;
&lt;P&gt;series&amp;nbsp;&lt;SPAN&gt;x=date y=abx_utilization&lt;/SPAN&gt;&amp;nbsp;/ markers markerattrs=(symbol=circlefilled);&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You will probably want to format 0 and 1 to some meaningful text for the legend.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps!&lt;/P&gt;
&lt;P&gt;Dan&lt;/P&gt;</description>
      <pubDate>Wed, 01 Mar 2017 22:49:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Plotting-Segmented-regression-analysis-of-interrupted-time/m-p/337168#M11702</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2017-03-01T22:49:30Z</dc:date>
    </item>
  </channel>
</rss>

