Hello,
I 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.
Here are the steps I followed to conduct the analysis:
proc panel data=legalaid.panel;
id prov year;
model percapnum_of_app=percapcharge percapmale12_34 percappersonLIM percapexp /fuller parks rho;
run;
The results show that RHO values are greater than zero (from 0.56 to 0.95). There is an auto-correlation. Therefore, I chose the "Parks" method.
2.Check if the panel is stationary by using the Hadri test:
proc panel data=legalaid.panel;
id prov year;
model percapnum_of_app=percapcharge percapmale12_17 percapmale18_34 percappersonLIM percapexp /parks stationarity=(Hadri);
run;
Please see the test results below . I am not sure how to interpret the result. I checked with SAS User's Guide. It states "
Under the null hypothesis of stationary, the variance of the random walk equals 0". Since the P<0.05, therefore the null hypothesis can be rejected. Then the panel is not stationary. Can someone tell me that is this a correct interpretation?
If the panel is not stationary, can I use the Dasilva method?
Hadri Test Options
Kernel Quadratic
Bandwidth Method Andrews(91)
Hadri Test Results
Deterministic Variables IID Error Hetero Error Autocorr Error
Z Pr > Z Z Pr > Z Z Pr > Z
CS Fixed 10.79 <.0001 9.60 <.0001 4.61 <.0001
CS Fixed, Time 5.16 <.0001 7.28 <.0001 8.35 <.0001
CS, TS Fixed 11.16 <.0001 10.10 <.0001 4.75 <.0001
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;
Please see the test results below:
Panel Cross Sectional Dependence Tests
Dependent Variable: percapnum_of_app
Local Cross Sectional Dependence Test Results
p CDp Pr > |CDp|
1 0.15 0.8773
The null hypothesis: zero cross-sectional error correlations.
since P>0.05, so we can not reject null hypothesis. So there is no cross sectional dependence.
Is this a correct interpretation?
If there is cross-sectional error correlation, then how to fix the correlation?
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 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 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. The Park's model is typically used if you want to include a structure for contemporaneous correlation between cross sections with possible heteroscedasticity on top of autocorrelated errors.
If the panel is nonstationary you might want to difference the data. DaSilva is an MA type of estimator that doesn't help with this problem.
Hadri's test: Under the null data is stationary. Your test rejects the null and therefore the panel is nonstationary.
CD test: Under the null the residuals are not correlated. Your p-value is pretty high indicating that the null cannot be rejected. There is no contemporaneous correlation between cross sections which somewhat suggests that the Parks model might not be needed.
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.
Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9.
Lock in the best rate now before the price increases on April 1.