Dear All,
I am a beginner in Stata, and I was performing an augmented Dickey-Fuller test for the production index data (the data is attached as an excel file). It is a monthly series, so I’ve converted it to the quarterly series after importing this data to Stata. Below is the code I’ve run after importing the data:
I’m puzzled that the linear regression constant coefficient estimate is somewhat different from the one generated after dfuller command: .3369282 vs .3381812. Shouldn’t they be identical? Perhaps I lack knowledge of how this test work and/or there is an error in my code. Can you kindly help me find out? Many thanks.
I am a beginner in Stata, and I was performing an augmented Dickey-Fuller test for the production index data (the data is attached as an excel file). It is a monthly series, so I’ve converted it to the quarterly series after importing this data to Stata. Below is the code I’ve run after importing the data:
Code:
gen Time = qofd(Date) format Time %tq collapse (mean) INDPRO, by(Time) gen time = _n tsset time gen yt = log(INDPRO) gen ytmin1 = yt[_n-1] gen Delta_yt = D.yt gen Delta_ytmin1 = Delta_yt[_n-1] dfuller yt, lags(1) trend regress regress Delta_yt time ytmin1 Delta_ytmin1
Comment