Dear Stata users,
I'm making a composite index (early warning indicator) for my diploma thesis. I use STATA 13. I have a problem with hp filtering certain time series. I use panel data for 26 countries (1970-2010, quarterly database) and 25 variables. Unfortunately there are missing values (missing all data for few countries 1-5) in 8 variables. When I run HP filter for variable witch missing observations I get following outcome:
I was trying to run HP filter with command "if countrunum!=5" to exclude country with missing observations but it doesn't work. Is there any possibility to run HP filter and exclude certain panels (few countries from my dataset)?
My aim is to get cyclical part of time variable. Thank you for helping me!
Michal M.
I'm making a composite index (early warning indicator) for my diploma thesis. I use STATA 13. I have a problem with hp filtering certain time series. I use panel data for 26 countries (1970-2010, quarterly database) and 25 variables. Unfortunately there are missing values (missing all data for few countries 1-5) in 8 variables. When I run HP filter for variable witch missing observations I get following outcome:
Code:
. tsfilter hp c_inflation = inflation, smooth(1600) trend(t_inflation) J(): 3300 argument out of range _TSFILTER_getQ(): - function returned error _TSFILTER_hpFilter(): - function returned error <istmt>: - function returned error r(3300);
My aim is to get cyclical part of time variable. Thank you for helping me!
Michal M.
Comment