Hello,
I tried to figure out a problem that came up when I used xtsum yesterday to inspect a new panel data set.
Within variation for var "c_id" should be "0" and it is. But for var "year" the between-variation was not "0" what it should be. There is no value like 2008.5 allowed - only full years. Also my dummy variable for the year 2004 does not look right...
Do you have an explanation for that? Also T-bar looks awkward. I analyse a 8 year period. I already visually inspected the data and checked for any year values that might not be integers, but maybe there is another way to check for those deviations?
Thank you!
Stata 11.2
I tried to figure out a problem that came up when I used xtsum yesterday to inspect a new panel data set.
Within variation for var "c_id" should be "0" and it is. But for var "year" the between-variation was not "0" what it should be. There is no value like 2008.5 allowed - only full years. Also my dummy variable for the year 2004 does not look right...
Do you have an explanation for that? Also T-bar looks awkward. I analyse a 8 year period. I already visually inspected the data and checked for any year values that might not be integers, but maybe there is another way to check for those deviations?
Thank you!
Stata 11.2
Code:
sort c_id year
xtset c_id year
xtsum c_id year dummy04
Variable | Mean Std. Dev. Min Max | Observations
-----------------+--------------------------------------------+----------------
c_id overall | 1319.154 1049.926 1 4611 | N = 64340
between | 1048.901 1 4611 | n = 4611
within | 0 1819.384 1819.384 | T-bar = 6.67492
| |
year overall | 2007.994 2.026894 2004 2011 | N = 64340
between | .4408717 2006.5 2008.5 | n = 4611
within | 1.97871 2004.137 2011.851 | T-bar = 6.67492
| |
dummy04 overall | .0438763 .204824 0 1 | N = 64340
between | .0592206 0 .2 | n = 4611
within | .1954326 -.1561237 .9188763 | T-bar = 6.67492

Comment