Hi everyone
I am working on a time series data and from the data had to calculate the output gap.
I have used BK filter for that and calculated the trend as well. I am however not getting all the values and there are missing observations at the starting and the end.
Stata version is 12.0. Pls help me with the commands. It is a quaterly data.
tsfilter bk bk_gdp= ln_gdp,min(6) max(32) sma(12)
tsfilter bk trend_gdp=ln_gdp,min(6) max(32) trend(trend_bk)
tsline trend_bk ln_gdp
This is what I have used.
Thank you
I am working on a time series data and from the data had to calculate the output gap.
I have used BK filter for that and calculated the trend as well. I am however not getting all the values and there are missing observations at the starting and the end.
Stata version is 12.0. Pls help me with the commands. It is a quaterly data.
tsfilter bk bk_gdp= ln_gdp,min(6) max(32) sma(12)
tsfilter bk trend_gdp=ln_gdp,min(6) max(32) trend(trend_bk)
tsline trend_bk ln_gdp
This is what I have used.
Thank you
Comment