Hello together,
first to say, i am not a stata expert. I have a panel data set and did fixed effect regressions. Now i have to test for autocorrelation with durbin watson test.
I tried two ways with either way ending in error:
tsset companycode Yearcode
Panel variable: companycode (unbalanced)
Time variable: Yearcode, 1 to 10
Delta: 1 year
dwstat
sample may not include multiple panels
r(459);
tsset Yearcode
repeated time values in sample
r(451);
The dataset: Every Company has a year but some companys have only data for e.g 7 to 10.
What can i do with my dataset to run the test?
first to say, i am not a stata expert. I have a panel data set and did fixed effect regressions. Now i have to test for autocorrelation with durbin watson test.
I tried two ways with either way ending in error:
tsset companycode Yearcode
Panel variable: companycode (unbalanced)
Time variable: Yearcode, 1 to 10
Delta: 1 year
dwstat
sample may not include multiple panels
r(459);
tsset Yearcode
repeated time values in sample
r(451);
The dataset: Every Company has a year but some companys have only data for e.g 7 to 10.
What can i do with my dataset to run the test?
Comment