Created
October 2, 2020 15:38
-
-
Save arimitramaiti/0c32eb4fd1d6614ed8c500a303d4f991 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Used to format the Time column as Quarterly | |
gen quarterly_date = qofd(Time) | |
format quarterly_date %tq | |
#Set the time attribute, this is critical before proceeding further | |
tsset quarterly_date, quarterly | |
##The next 4 lines are for DF test or ADF test at lag=0 | |
dfuller GDP_pc, trend regress lags(0) | |
dfuller GDP_GWR, trend regress lags(0) | |
dfuller Consumption, trend regress lags(0) | |
dfuller C_GWR, trend regress lags(0) | |
##The next 4 lines are for ADF test at lags greater than 0 | |
dfuller GDP_pc, trend regress lags(4) | |
dfuller GDP_GWR, trend regress lags(4) | |
dfuller Consumption, trend regress lags(4) | |
dfuller C_GWR, trend regress lags(4) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment