[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
RE: st: xtregar
Liliana Ramirez <firstname.lastname@example.org> wrote:
> I am trying to calculate random and fixed effects models using
> xtregar in order to check for heteroskedasticity and
> autocorrelation. But my panel data includes 160 countries and only 3
> time observations 1970 1980 1990 because they are decade averages to
> avoid picking up business cycles dynimics. When I tried to permorm
> xtregar I got an error r(2000).
As part of the calculation, -xtregar- needs to calculate first differences of
the data. Stata is trying to obtain the first differences using observations
from 1969, 1979, and 1989. Since none of these observations are present,
-xtregar- exits with r(2000) no observations.
Liliana can solve this problem by creating another time variable, say t2,
I hope that this helps.
* For searches and help try: