This question is cross posted here.
I have the following data:
I simply need to do a unit-root test. I have tried using R but was unable to find a package that could handle unbalanced panels. I thought that Stata would be easier but I have encountered consecutive obstacles. This question had evolved from here and here.
I have the following data:
Code:
import excel "\\dfs\wiwi\home\Perdue\Desktop\statafiles\unitroot.xls", sheet("Sheet1") firstrow clear encode cid, gen(panel_id) drop cid xtset panel_id date panel variable: panel_id (unbalanced) time variable: date, 2006 to 2014 delta: 1 unit 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); count if mi(date, years_exp, leg_totalbills, panel_id) 0
Comment