Hi,
I am running the following regression:
xtreg recycling loginc logpopden md11 md12 md13 md14 md15 md16 md17 md18 md19 md20 md21 md22 md23 md24 md25 md26 md27 md28 md29 md291 wasteavg dryavg quarter2 quarter3 quarter4 year2 year3 year4 year5, fe vce(cluster acode)
I check for serial correlation using
xtserial recycling loginc logpopden md11 md12 md13 md14 md15 md16 md17 md18 md19 md20 md21 md22 md23 md24 md25 md26 md27 md28 md29 md291 wasteavg dryavg quarter2 quarter3 quarter4 year2 year3 year4 year5, output
This gives me output
Wooldridge test for autocorrelation in panel data
H0: no first-order autocorrelation
F( 1, 310) = 69.989
Prob > F = 0.0000
So I then do
reg D.(recycling loginc logpopden md11 md12 md13 md14 md15 md16 md17 md18 md19 md20 md21 md22 md23 md24 md25 md26 md27 md28 md29 md291 wasteavg dryavg quarter2 quarter3 quarter4 year2 year3 year4 year5)
predict u,resid
regress u l.u
Below is my output.
Source | SS df MS Number of obs = 5,174
-------------+---------------------------------- F(1, 5172) = 703.69
Model | 4128.47295 1 4128.47295 Prob > F = 0.0000
Residual | 30343.7093 5,172 5.86691981 R-squared = 0.1198
-------------+---------------------------------- Adj R-squared = 0.1196
Total | 34472.1822 5,173 6.66386666 Root MSE = 2.4222
------------------------------------------------------------------------------
u | Coef. Std. Err. t P>|t| [95% Conf. Interval]
-------------+----------------------------------------------------------------
u |
L1. | -.3368239 .0126974 -26.53 0.000 -.3617161 -.3119317
|
_cons | -.048475 .0336738 -1.44 0.150 -.1144898 .0175399
------------------------------------------------------------------------------
Am I correct in thinking my results indicate I am inbetween a First difference and Fixed effects estimator?
What commands do I need to run this as a first difference calculation? I have never done first difference in Stata before.
Related Posts with First Difference vs Fixed Effects Serial Correlation
Does mediator make the relationship between the independent and dependent variables stronger?If we believe a variable is a mediator, does it make the relationship between the independent variab…
Linear restrictions in coefficients after using xtmg panel data commadDear collegues, I have estimated a mean group (Pesaran and Smith 1995) panel data model with "xtmg"…
Help with time series data analysisHello all, Statistics novice here trying to find the best test to use for my data. I am currently lo…
What contributed to the discrepancies in mini dataset (extracted from raw data) versus the original data?Hi Stata experts, I am working on a modified dataset including only one variable and 18 observation…
Err Msg: depvar may not be a factor variableDear Statalist, I have a question about the error message in the title. It's really mysterious to m…
Subscribe to:
Post Comments (Atom)
0 Response to First Difference vs Fixed Effects Serial Correlation
Post a Comment