I have a question on how to do panel ARDL with logit, especially on stationarity test.
My dataset has 4163 unique hhids during 2007, 2008, 2010, 2011, 2013, 2016, and 2017. The dependent variable is a dummy, and the independent variable is continuous. I have dropped unique HHIDs that appear in less than 3 years. Below is the output from Stata that shows an error.
xtunitroot fisher dummy_y, dfuller lags(1)
performing unit-root test on first panel using the syntax
dfuller dummy_y, lags(1)
returned error code 2000
r(2000);
xtunitroot fisher continous_X1, dfuller lags(1)
performing unit-root test on first panel using the syntax
dfuller continous_X1, lags(1)
returned error code 2000
r(2000);
xtunitroot ips continous_X1, lags(1)
Im–Pesaran–Shin test cannot have gaps in data
r(498);
. xtsum continous_X1 dummy_y lag_dummy_y lag_continous_X1
Variable | Mean Std. dev. Min Max | Observations
-----------------+--------------------------------------------+----------------
continous_X1 overall | .1560596 .4047683 -.8895833 1.108167 | N = 21494
between | .1288414 -.2840556 .6132778 | n = 3766
within | .3854087 -.6924237 .9570041 | T-bar = 5.70738
| |
dummy_y overall | .0715549 .2577554 0 1 | N = 21494
between | .1497109 0 1 | n = 3766
within | .2135162 -.7617785 .9286977 | T-bar = 5.70738
| |
lag_dummy_y overall | .0724278 .2592022 0 1 | N = 17728
between | .1596944 0 1 | n = 3766
within | .2098082 -.7275722 .9057611 | T-bar = 4.70738
| |
lag_continous_X1 overall | .0920504 .3714877 -.8895833 .9658333 | N = 17728
between | .1331359 -.4109583 .5668333 | n = 3766
within | .3507517 -.6689705 .8854671 | T-bar = 4.70738
I hope these clear. Thanks.
My dataset has 4163 unique hhids during 2007, 2008, 2010, 2011, 2013, 2016, and 2017. The dependent variable is a dummy, and the independent variable is continuous. I have dropped unique HHIDs that appear in less than 3 years. Below is the output from Stata that shows an error.
xtunitroot fisher dummy_y, dfuller lags(1)
performing unit-root test on first panel using the syntax
dfuller dummy_y, lags(1)
returned error code 2000
r(2000);
xtunitroot fisher continous_X1, dfuller lags(1)
performing unit-root test on first panel using the syntax
dfuller continous_X1, lags(1)
returned error code 2000
r(2000);
xtunitroot ips continous_X1, lags(1)
Im–Pesaran–Shin test cannot have gaps in data
r(498);
. xtsum continous_X1 dummy_y lag_dummy_y lag_continous_X1
Variable | Mean Std. dev. Min Max | Observations
-----------------+--------------------------------------------+----------------
continous_X1 overall | .1560596 .4047683 -.8895833 1.108167 | N = 21494
between | .1288414 -.2840556 .6132778 | n = 3766
within | .3854087 -.6924237 .9570041 | T-bar = 5.70738
| |
dummy_y overall | .0715549 .2577554 0 1 | N = 21494
between | .1497109 0 1 | n = 3766
within | .2135162 -.7617785 .9286977 | T-bar = 5.70738
| |
lag_dummy_y overall | .0724278 .2592022 0 1 | N = 17728
between | .1596944 0 1 | n = 3766
within | .2098082 -.7275722 .9057611 | T-bar = 4.70738
| |
lag_continous_X1 overall | .0920504 .3714877 -.8895833 .9658333 | N = 17728
between | .1331359 -.4109583 .5668333 | n = 3766
within | .3507517 -.6689705 .8854671 | T-bar = 4.70738
I hope these clear. Thanks.
Comment