Hi there. So bacically, i get the "no observation r(2000)" error when I try running "var" (which is the command for Vector Autorregression). I know there are some posts already talking about the issue, but none of them solved my problem. So here we go.
I'm working with macroeconomic time series. More specifically I'm trying to run var for central bank policy rate and inflation rate with two lags. The range of my dataset goes from 1999-june to 2018-december in monthly periods.
You can see below the commands I've used step-by-step, where "IPCA_L" is my variable for inflation rate, "SELIC" is by variable for central bank policy rate and "MES" is date. I've also run "describe" and "summarize" in case you need it.
So, does anyone know what I'm doing wrong?
Thanks in advantage
I'm working with macroeconomic time series. More specifically I'm trying to run var for central bank policy rate and inflation rate with two lags. The range of my dataset goes from 1999-june to 2018-december in monthly periods.
You can see below the commands I've used step-by-step, where "IPCA_L" is my variable for inflation rate, "SELIC" is by variable for central bank policy rate and "MES" is date. I've also run "describe" and "summarize" in case you need it.
Code:
. tsset MES, monthly delta(1) Variable MES had been formatted %tdMon-YY (a daily period), and you asked for a monthly period. Are you sure that is what you want? It has been done; MES is now formatted %tm. time variable: MES, 3159m9 to 3753m4, but with gaps delta: 1 month . var IPCA_L SELIC, lags(3) small level(95) no observations r(2000); end of do-file r(2000); . describe Contains data obs: 235 vars: 6 size: 8,930 ------------------------------------------------------------------------------------------------------------------------------------------------------------- storage display value variable name type format label variable label ------------------------------------------------------------------------------------------------------------------------------------------------------------- MES int %tm SELIC double %10.0g IPCA_L double %10.0g IPCA_A double %10.0g IPCA_L12 double %10.0g d_SELIC float %9.0g ------------------------------------------------------------------------------------------------------------------------------------------------------------- Sorted by: MES Note: Dataset has changed since last saved. . summarize Variable | Obs Mean Std. Dev. Min Max -------------+--------------------------------------------------------- MES | 235 17957.81 2069.232 14396 21519 SELIC | 235 13.68617 4.580613 6.5 26.5 IPCA_L | 235 .4819574 .372651 -.35 2.53 IPCA_A | 235 6.497617 2.686038 2.46 17.24 IPCA_L12 | 235 5.815702 2.432967 .97 14.4 -------------+--------------------------------------------------------- d_SELIC | 234 -.0619658 .5625146 -2.5 3
Thanks in advantage
Comment