Question has been cross-posted here:
I have an excel file that I opened in stata and set into panel data:
I run the xtunitroot with the following code:
and I get the following error:
I read that this could be due to missing values so I ran a count missing command:
I have an excel file that I opened in stata and set into panel data:
Code:
xtset panelid date
Code:
summarize Variable | Obs Mean Std. Dev. Min Max -------------+-------------------------------------------------------- date | 2418 2010.049 2.816131 2005 2014 years_exp | 2418 10.96526 9.529847 0 60 leg_totalb~s | 2418 6.753102 7.878725 1 156 billsum | 2418 .4028122 .9150199 0 12 amtsum | 2418 568.0935 2034.004 0 93395.88 -------------+-------------------------------------------------------- panel_id | 2418 384.1638 215.0956 1 816 xtunitroot fisher leg_totalbills, dfuller trend demean lags(1)
Code:
xtunitroot fisher leg_totalbills, dfuller trend demean lags(1)
Code:
. xtunitroot fisher leg_totalbills, dfuller trend demean lags(1) performing unit-root test on first panel using the syntax dfuller leg_totalbills, trend lags(1) returned error code 2000 r(2000);
Code:
count if missing(date, years_exp, amtsum, billsum, leg_totalbills) 0
Comment