<?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: Questions related to panel analysis in SAS Forecasting and Econometrics</title>
    <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Questions-related-to-panel-analysis/m-p/291701#M1874</link>
    <description>Thanks for your help.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Mon, 15 Aug 2016 15:17:46 GMT</pubDate>
    <dc:creator>ting1</dc:creator>
    <dc:date>2016-08-15T15:17:46Z</dc:date>
    <item>
      <title>Questions related to panel analysis</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Questions-related-to-panel-analysis/m-p/286173#M1837</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I &amp;nbsp;am working on a panel dataset. This is first time I use this method. I have a few questions and wonder if anyone from this community can help me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here are the steps I followed to conduct the analysis:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;check if there is any autocorrelation&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc panel data=legalaid.panel;

id prov year;

model percapnum_of_app=percapcharge percapmale12_34 percappersonLIM percapexp /fuller parks rho;

run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;The results show that RHO values are greater than zero (from 0.56 to 0.95).&amp;nbsp;&amp;nbsp;There is an auto-correlation. Therefore, I chose the "Parks" method.&lt;/P&gt;&lt;P&gt;2.Check if the panel is stationary by using the Hadri test:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc panel data=legalaid.panel;

id prov year;

model percapnum_of_app=percapcharge percapmale12_17 percapmale18_34 percappersonLIM percapexp /parks stationarity=(Hadri);

run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Please see&amp;nbsp; the test results below&amp;nbsp;. I am not sure how to interpret the result. I checked with SAS User's Guide. It states "&lt;/P&gt;&lt;P&gt;Under the null hypothesis of stationary, the variance of the random walk equals 0". Since the P&amp;lt;0.05,&amp;nbsp;therefore the null hypothesis can be rejected. Then the panel is not stationary. &lt;STRONG&gt;Can someone tell me that is this a correct interpretation?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If the panel is not stationary, can I use the Dasilva method?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Hadri Test Options&lt;/P&gt;&lt;P&gt;Kernel&amp;nbsp; Quadratic&lt;/P&gt;&lt;P&gt;Bandwidth Method&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Andrews(91)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hadri Test Results&lt;/P&gt;&lt;P&gt;Deterministic Variables&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IID Error&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Hetero Error&amp;nbsp;&amp;nbsp;&amp;nbsp; Autocorr Error&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Z&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Pr &amp;gt; Z&amp;nbsp; Z&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Pr &amp;gt; Z&amp;nbsp; Z&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Pr &amp;gt; Z&lt;/P&gt;&lt;P&gt;CS Fixed&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10.79&amp;nbsp;&amp;nbsp; &amp;lt;.0001 9.60&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;.0001 4.61&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;.0001&lt;/P&gt;&lt;P&gt;CS Fixed, Time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;5.16&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;.0001 7.28&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;.0001 8.35&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;.0001&lt;/P&gt;&lt;P&gt;CS, TS Fixed&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 11.16&amp;nbsp;&amp;nbsp; &amp;lt;.0001 10.10&amp;nbsp;&amp;nbsp; &amp;lt;.0001 4.75&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;.0001&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Check for cross sectional dependence by using CDTEST&lt;/LI&gt;&lt;/OL&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc panel data=legalaid.panel;
id prov year;
model percapnum_of_app=percapcharge percapmale12_17 percapmale18_34  percappersonLIM  percapexp /fuller parks 
 cdtest(p=1);
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Please see the test results below:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Panel Cross Sectional Dependence Tests&lt;/P&gt;&lt;P&gt;Dependent Variable: percapnum_of_app&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Local Cross Sectional Dependence Test Results&lt;/P&gt;&lt;P&gt;p&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CDp&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Pr &amp;gt; |CDp|&lt;/P&gt;&lt;P&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.15&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.8773&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The null hypothesis:&amp;nbsp;zero cross-sectional error correlations.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;since P&amp;gt;0.05, so we can not reject null hypothesis. So there is no cross sectional dependence.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Is&amp;nbsp;this a correct interpretation?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If there is cross-sectional error correlation, then how to fix the correlation?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jul 2016 15:58:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Questions-related-to-panel-analysis/m-p/286173#M1837</guid>
      <dc:creator>ting1</dc:creator>
      <dc:date>2016-07-21T15:58:57Z</dc:date>
    </item>
    <item>
      <title>Re: Questions related to panel analysis</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Questions-related-to-panel-analysis/m-p/287318#M1844</link>
      <description>&lt;P style="margin: 0in; margin-bottom: .0001pt; line-height: 15.0pt;"&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica','sans-serif'; color: #333333;"&gt;The Parks method might be a good choice but it really depends on diagnostics and assumptions behing your model. It is a good idea to test first if the errors are autocorrelated. The PANEL procedure offers several&lt;SPAN class="apple-converted-space"&gt;&amp;nbsp;&lt;/SPAN&gt;tests. Durbin-Watson BFN or Baltagi and Li's tests might be a good start. I would try to run several tests and figure out what type of correlation I have because it determines what type of model I might want to&lt;SPAN class="apple-converted-space"&gt;&amp;nbsp;&lt;/SPAN&gt;fit. If the errors are autocorrelated, the modeling possibilities range from differencing the data, Arellano and Bond's dynamic panel estimators or Park's method.&amp;nbsp;The Park's model is typically used if you want to include&amp;nbsp;a structure for&amp;nbsp;contemporaneous correlation between cross sections with possible heteroscedasticity on top of autocorrelated errors. &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0in; margin-bottom: .0001pt; line-height: 15.0pt; orphans: auto; text-align: start; widows: 1; -webkit-text-stroke-width: 0px; word-spacing: 0px;"&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica','sans-serif'; color: #333333;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0in; margin-bottom: .0001pt; line-height: 15.0pt; orphans: auto; text-align: start; widows: 1; -webkit-text-stroke-width: 0px; word-spacing: 0px;"&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica','sans-serif'; color: #333333;"&gt;If the panel is nonstationary you might want to difference the data. DaSilva is an MA type of&lt;SPAN class="apple-converted-space"&gt;&amp;nbsp;&lt;/SPAN&gt;estimator&amp;nbsp;that doesn't help with this problem.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0in; margin-bottom: .0001pt; line-height: 15.0pt; orphans: auto; text-align: start; widows: 1; -webkit-text-stroke-width: 0px; word-spacing: 0px;"&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica','sans-serif'; color: #333333;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0in; margin-bottom: .0001pt; line-height: 15.0pt; orphans: auto; text-align: start; widows: 1; -webkit-text-stroke-width: 0px; word-spacing: 0px;"&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica','sans-serif'; color: #333333;"&gt;Hadri's test: Under the null data is stationary. Your test rejects the null and therefore the panel is nonstationary.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0in; margin-bottom: .0001pt; line-height: 15.0pt; orphans: auto; text-align: start; widows: 1; -webkit-text-stroke-width: 0px; word-spacing: 0px;"&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica','sans-serif'; color: #333333;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0in; margin-bottom: .0001pt; line-height: 15.0pt; orphans: auto; text-align: start; widows: 1; -webkit-text-stroke-width: 0px; word-spacing: 0px;"&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica','sans-serif'; color: #333333;"&gt;CD test: Under the null the residuals are not correlated. Your &amp;nbsp;p-value is pretty high indicating that the null cannot be rejected. There is no&amp;nbsp;contemporaneous correlation between cross sections which somewhat suggests that the Parks model might not be needed.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jul 2016 19:23:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Questions-related-to-panel-analysis/m-p/287318#M1844</guid>
      <dc:creator>bbridgerb</dc:creator>
      <dc:date>2016-07-26T19:23:22Z</dc:date>
    </item>
    <item>
      <title>Re: Questions related to panel analysis</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Questions-related-to-panel-analysis/m-p/289330#M1857</link>
      <description>Thanks for your answer.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I did the Baltagi and Li (1991) (BL91) as you suggested in your response (please see the code blow).&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;proc panel data=legalaid.panel;&lt;BR /&gt;id prov year;&lt;BR /&gt;model percapnum_of_app=percapcharge percapmale12_17 percapmale18_34 percappersonLIM percapexp /fixone bl91 ;&lt;BR /&gt;model percapnum_of_app=percapcharge percapmale12_17 percapmale18_34 percappersonLIM percapexp /fixtwo bl91 ;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The result shown blow. The null hypothesis is a white noise component: for MA with MA coefficient or for AR with AR coefficient. Does this mean I can use the Parks method and Dasilva option? However, this does not solve the problem of non-stationary of the panel. We can difference the data to resolve the non-stationary problem, but differencing method is for the fix models. Are there other methods I can use?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Baltagi and Li Joint Test for Random Cross Sectional Effects and AR-MA Serial Correlation&lt;BR /&gt;&lt;BR /&gt;DF&lt;BR /&gt;&lt;BR /&gt;m Value&lt;BR /&gt;&lt;BR /&gt;Pr &amp;gt; m&lt;BR /&gt;&lt;BR /&gt;2&lt;BR /&gt;&lt;BR /&gt;389.51&lt;BR /&gt;&lt;BR /&gt;&amp;lt;.0001&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 03 Aug 2016 18:47:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Questions-related-to-panel-analysis/m-p/289330#M1857</guid>
      <dc:creator>ting1</dc:creator>
      <dc:date>2016-08-03T18:47:13Z</dc:date>
    </item>
    <item>
      <title>Re: Questions related to panel analysis</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Questions-related-to-panel-analysis/m-p/290218#M1860</link>
      <description>&lt;P&gt;Your test is rejecting the null which means that the errors are either serially correlated or/and the cross sectional effects are not independent. Parks method might not be needed but you might want to fit an AR/MA model. For discussion of these models see for example Baltagi, "Econometric Analysis of Panel Data". Unfurtunatelly, aside from dynamic panel estimator, Parks and Dasilva, the PANEL procedure doesn't accomodate these models. You might be able to fit some of them in the SSM procedure. &amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Aug 2016 15:14:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Questions-related-to-panel-analysis/m-p/290218#M1860</guid>
      <dc:creator>bbridgerb</dc:creator>
      <dc:date>2016-08-08T15:14:03Z</dc:date>
    </item>
    <item>
      <title>Re: Questions related to panel analysis</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Questions-related-to-panel-analysis/m-p/291701#M1874</link>
      <description>Thanks for your help.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 15 Aug 2016 15:17:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Questions-related-to-panel-analysis/m-p/291701#M1874</guid>
      <dc:creator>ting1</dc:creator>
      <dc:date>2016-08-15T15:17:46Z</dc:date>
    </item>
  </channel>
</rss>

