<?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: Correcting autocorrelation and heteroskedasticity in PROC PANEL in SAS Forecasting and Econometrics</title>
    <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Correcting-autocorrelation-and-heteroskedasticity-in-PROC-PANEL/m-p/202916#M1284</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A __default_attr="853963" __jive_macro_name="user" class="jive_macro jive_macro_user" data-objecttype="3" href="https://communities.sas.com/"&gt;&lt;/A&gt;, I moved your inquiry over to the SAS Statistical Procedures Community, whose experts can help you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 Apr 2015 18:18:28 GMT</pubDate>
    <dc:creator>BeverlyBrown</dc:creator>
    <dc:date>2015-04-27T18:18:28Z</dc:date>
    <item>
      <title>Correcting autocorrelation and heteroskedasticity in PROC PANEL</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Correcting-autocorrelation-and-heteroskedasticity-in-PROC-PANEL/m-p/202915#M1283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm doing a replication of an empirical paper examining the effects of bus transit on various economic measures.&amp;nbsp; I have panel data for about 80 counties over 16 years, and for this particular model I'm regressing the unemployment rate against operating expenses of the bus systems.&amp;nbsp; There are many missing values, which makes this data unbalanced, and I am aware that this is problematic for some measures of autocorrelation.&amp;nbsp; What I'm more concerned about is just making sure I understand the process, rather than necessarily getting correct values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Working with non-panel time series data, I know how to use AUTOREG to find a Durbin-Watson score for the original model, and then set a lag time to correct, then get a new DW score reflecting the corrected model.&amp;nbsp; So maybe the uncorrected model gives DW=.3, then corrected shows DW=2 (approximately).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, I'm not sure exactly how to implement this in PROC PANEL.&amp;nbsp; I have run the following code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;proc panel data=full plots=none;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp; id county_id year;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp; model unemployment_rate = real_oe_percap/ dw;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp; model unemployment_rate = real_oe_percap/ FIXONE dw;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp; model unemployment_rate = real_oe_percap/ FIXONE hccme=4 dw;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp; model unemployment_rate = real_oe_percap/ FIXONE hac dw;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;run;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P&gt;A note: the DW score in PANEL is experimental, and didn't even seem to be available in SAS Studio until after I spoke to customer service today.&amp;nbsp; However, I've done this with non-experimental tests and gotten the same results, so I think I still have some kind of a problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first model defaults to random effects, which I don't want, but am including for debugging purposes. The next three use a fixed effects model, with what I intend to be corrections for autocorrelation in the last two.&amp;nbsp; So here's the thing:&amp;nbsp; the three FixOne models give identical results for fit statistics and parameter estimates, with the last two having a slightly different standard errors from the second.&amp;nbsp; However, all four of them have identical DW scores of .44, which suggests positive autocorrelation.&amp;nbsp; Am I implementing these incorrectly?&amp;nbsp; Shouldn't I be able to perform a correction as in AUTOREG that will result in a DW score closer to 2?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, I have performed a test for heteroskedasticity as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;proc model data=full plots=none;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; parms a1 b1;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; unemployment_rate = a1 + b1 * real_oe_percap;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fit unemployment_rate / white;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; title 'Test for Heteroskedasticity';&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp;&amp;nbsp; run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This gives me a score for White's Test, indicating heteroskedasticity in the basic model, which I am attempting to correct for here.&amp;nbsp; How can I tell if I have successfully corrected for that?&amp;nbsp; PROC PANEL doesn't take white as an option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Apr 2015 01:47:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Correcting-autocorrelation-and-heteroskedasticity-in-PROC-PANEL/m-p/202915#M1283</guid>
      <dc:creator>mscherst</dc:creator>
      <dc:date>2015-04-24T01:47:46Z</dc:date>
    </item>
    <item>
      <title>Re: Correcting autocorrelation and heteroskedasticity in PROC PANEL</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Correcting-autocorrelation-and-heteroskedasticity-in-PROC-PANEL/m-p/202916#M1284</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A __default_attr="853963" __jive_macro_name="user" class="jive_macro jive_macro_user" data-objecttype="3" href="https://communities.sas.com/"&gt;&lt;/A&gt;, I moved your inquiry over to the SAS Statistical Procedures Community, whose experts can help you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Apr 2015 18:18:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Correcting-autocorrelation-and-heteroskedasticity-in-PROC-PANEL/m-p/202916#M1284</guid>
      <dc:creator>BeverlyBrown</dc:creator>
      <dc:date>2015-04-27T18:18:28Z</dc:date>
    </item>
    <item>
      <title>Re: Correcting autocorrelation and heteroskedasticity in PROC PANEL</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Correcting-autocorrelation-and-heteroskedasticity-in-PROC-PANEL/m-p/202917#M1285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mike, you need to cross post this again into the SAS Forecasting and Econometrics Community, where the ETS procedures are routinely addressed.&amp;nbsp; Look for responses from &lt;A __default_attr="414047" __jive_macro_name="user" class="jive_macro jive_macro_user" data-objecttype="3" href="mailto:udo@sas"&gt;&lt;/A&gt;, &lt;A __default_attr="808316" __jive_macro_name="user" class="jive_macro jive_macro_user" data-objecttype="3" href="https://communities.sas.com/"&gt;&lt;/A&gt;, &lt;A __default_attr="7180" __jive_macro_name="user" class="jive_macro jive_macro_user" data-objecttype="3" href="https://communities.sas.com/"&gt;&lt;/A&gt;, and &lt;A __default_attr="812806" __jive_macro_name="user" class="jive_macro jive_macro_user" data-objecttype="3" href="mailto:gunce@sas"&gt;&lt;/A&gt;, and do a search on their responses that are already posted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve Denham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Apr 2015 18:36:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Correcting-autocorrelation-and-heteroskedasticity-in-PROC-PANEL/m-p/202917#M1285</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2015-04-27T18:36:25Z</dc:date>
    </item>
    <item>
      <title>Re: Correcting autocorrelation and heteroskedasticity in PROC PANEL</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Correcting-autocorrelation-and-heteroskedasticity-in-PROC-PANEL/m-p/202918#M1286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Per your advice, Steve, I've moved Mike's inquiry to the SAS Forecasting and Econometrics Community. Grateful for your help in here!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Apr 2015 19:42:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Correcting-autocorrelation-and-heteroskedasticity-in-PROC-PANEL/m-p/202918#M1286</guid>
      <dc:creator>BeverlyBrown</dc:creator>
      <dc:date>2015-04-27T19:42:49Z</dc:date>
    </item>
    <item>
      <title>Re: Correcting autocorrelation and heteroskedasticity in PROC PANEL</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Correcting-autocorrelation-and-heteroskedasticity-in-PROC-PANEL/m-p/202919#M1287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;To solve the AR issue look at this example, how to include lagged variables in proc panel:&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/etsug/67525/HTML/default/viewer.htm#etsug_panel_example07.htm" title="http://support.sas.com/documentation/cdl/en/etsug/67525/HTML/default/viewer.htm#etsug_panel_example07.htm"&gt;SAS/ETS(R) 13.2 User's Guide&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Apr 2015 14:55:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Correcting-autocorrelation-and-heteroskedasticity-in-PROC-PANEL/m-p/202919#M1287</guid>
      <dc:creator>gergely_batho</dc:creator>
      <dc:date>2015-04-30T14:55:22Z</dc:date>
    </item>
  </channel>
</rss>

