<?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 Controlling for Clustered data and Autocorrelation in regression in SAS Forecasting and Econometrics</title>
    <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Controlling-for-Clustered-data-and-Autocorrelation-in-regression/m-p/800503#M4361</link>
    <description>&lt;P&gt;Hello! I am trying to run an interrupted time series analysis on admissions data from four clinics. The dependent variable is the total count of all visits (aggregated across the four clinics) and the independent variables are week, interruption, and the interaction variable. The dependent variable appears to be normally distributed, so I have been using proc autoreg in order to account for autocorrelation since it is time series data. However, my advisor suggested that I also need to account for the clustering of the data (since it comes from four separate clinics). I am not sure how or what procedure is available to account for both autocorrelation and clustering? Any advice would be greatly appreciated.&lt;/P&gt;</description>
    <pubDate>Sun, 06 Mar 2022 21:19:35 GMT</pubDate>
    <dc:creator>mccormsa</dc:creator>
    <dc:date>2022-03-06T21:19:35Z</dc:date>
    <item>
      <title>Controlling for Clustered data and Autocorrelation in regression</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Controlling-for-Clustered-data-and-Autocorrelation-in-regression/m-p/800503#M4361</link>
      <description>&lt;P&gt;Hello! I am trying to run an interrupted time series analysis on admissions data from four clinics. The dependent variable is the total count of all visits (aggregated across the four clinics) and the independent variables are week, interruption, and the interaction variable. The dependent variable appears to be normally distributed, so I have been using proc autoreg in order to account for autocorrelation since it is time series data. However, my advisor suggested that I also need to account for the clustering of the data (since it comes from four separate clinics). I am not sure how or what procedure is available to account for both autocorrelation and clustering? Any advice would be greatly appreciated.&lt;/P&gt;</description>
      <pubDate>Sun, 06 Mar 2022 21:19:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Controlling-for-Clustered-data-and-Autocorrelation-in-regression/m-p/800503#M4361</guid>
      <dc:creator>mccormsa</dc:creator>
      <dc:date>2022-03-06T21:19:35Z</dc:date>
    </item>
    <item>
      <title>Re: Controlling for Clustered data and Autocorrelation in regression</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Controlling-for-Clustered-data-and-Autocorrelation-in-regression/m-p/800517#M4362</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have moved your question to the 'SAS Forecasting and Econometrics' board.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would try to use PROC PANEL (SAS/ETS) or PROC CPANEL (SAS Econometrics in SAS VIYA).&lt;/P&gt;
&lt;P&gt;Use one of these options in PROC PANEL :&lt;/P&gt;
&lt;DIV class="xisDoc-refProc"&gt;
&lt;DIV id="etsug.panel.pnlmodelstmt" class="aa-section"&gt;
&lt;DIV id="etsug.panel.paneltabmodel" class="aa-table"&gt;
&lt;DIV class="aa-table-contents"&gt;
&lt;TABLE class="aa-tabular"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TH colspan="2" width="683.662px" height="19px"&gt;Alternative Variances Options&lt;/TH&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="107.05px" height="30px"&gt;
&lt;DIV class="xisDoc-refProc"&gt;
&lt;DIV id="etsug.panel.pnlmodelstmt" class="aa-section"&gt;
&lt;DIV id="etsug.panel.options_altvar" class="aa-section"&gt;
&lt;DIV class="aa-options"&gt;
&lt;DL class="aa-options"&gt;
&lt;DT&gt;&lt;SPAN class=" aa-term "&gt;CLUSTER&lt;/SPAN&gt;&lt;/DT&gt;
&lt;/DL&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/TD&gt;
&lt;TD width="576.612px" height="30px"&gt;Corrects covariance for intracluster correlation&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="107.05px" height="30px"&gt;
&lt;DIV class="xisDoc-refProc"&gt;
&lt;DIV id="etsug.panel.pnlmodelstmt" class="aa-section"&gt;
&lt;DIV id="etsug.panel.options_altvar" class="aa-section"&gt;
&lt;DIV class="aa-options"&gt;
&lt;DL class="aa-options"&gt;
&lt;DT&gt;&lt;SPAN class=" aa-term "&gt;HAC &amp;lt;(&lt;SPAN class=" aa-argument"&gt;options&lt;/SPAN&gt;) &amp;gt; &lt;/SPAN&gt;&lt;/DT&gt;
&lt;/DL&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/TD&gt;
&lt;TD width="576.612px" height="30px"&gt;Specifies a heteroscedasticity- and autocorrelation-consistent (HAC) covariance&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="107.05px" height="30px"&gt;
&lt;DIV class="xisDoc-refProc"&gt;
&lt;DIV id="etsug.panel.pnlmodelstmt" class="aa-section"&gt;
&lt;DIV id="etsug.panel.options_altvar" class="aa-section"&gt;
&lt;DIV class="aa-options"&gt;
&lt;DL class="aa-options"&gt;
&lt;DT&gt;&lt;SPAN class=" aa-term "&gt;HCCME=&lt;/SPAN&gt;&lt;/DT&gt;
&lt;/DL&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/TD&gt;
&lt;TD width="576.612px" height="30px"&gt;Specifies a heteroscedasticity-corrected covariance matrix estimator (HCCME)&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want to stick to PROC AUTOREG , PROC AUTOREG has something similar.&lt;BR /&gt;See this option :&lt;/P&gt;
&lt;P&gt;COVEST=OP | HESSIAN | QML | HC0 | HC1 | HC2 | HC3 | HC4 | HAC &amp;lt;(…)&amp;gt; | NEWEYWEST &amp;lt;(…)&amp;gt;&lt;/P&gt;
&lt;P&gt;on the MODEL statement !&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Good luck,&lt;/P&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
      <pubDate>Mon, 07 Mar 2022 00:45:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Controlling-for-Clustered-data-and-Autocorrelation-in-regression/m-p/800517#M4362</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2022-03-07T00:45:42Z</dc:date>
    </item>
  </channel>
</rss>

