Good Afternoon Stata Community,
What is the optimum unit root procedure for a panel dataset built from 33 surveys on 27 unique dates across 15 months? Each survey includes between 491-1,502 respondents for a total of 26,965 observations. When specified as a time series data, STATA describes the panel variable as "weakly balanced." I am using STATA 17.0 and the dataset is attached to this post.
Commands - Generate Time Variable & Declare Time Series:
Very Respectfully,
Barry Smith
What is the optimum unit root procedure for a panel dataset built from 33 surveys on 27 unique dates across 15 months? Each survey includes between 491-1,502 respondents for a total of 26,965 observations. When specified as a time series data, STATA describes the panel variable as "weakly balanced." I am using STATA 17.0 and the dataset is attached to this post.
Commands - Generate Time Variable & Declare Time Series:
gen edate = mdy(month,day,year)STATA Response:
format %tdMonth_DD,_CCYY edate
xtset order edate, daily
Panel variable: order (weakly balanced)Commands - dfuller Unit Root Test on "pres" Independent Variable:
Time variable: edate, December 09, 1992 to March 27, 1994
Delta: 1 day
xtunitroot fisher pres, dfuller lags(1)STATA Response:
xtunitroot fisher pres, dfuller lags(8)
performing unit-root test on first panel using the syntaxI scoured the STATA manuals and internet forums for two months and tried dozens of alternative unit root approaches, all to no avail. My leading assumptions at this point is that I am either (1) making an error in structuring variables for the declaration command or (2) there is an elegant unit root procedure that can handle this dataset for which I am just not aware.
dfuller pres, lags(1)
returned error code 2000
r(2000)
Very Respectfully,
Barry Smith
Comment