Hello Professor,
I am working with a stationary NK-DSGE model and would like to estimate it using the method_of_moments() command in Dynare. My empirical data has been HP-filtered, and I am uncertain about the correct treatment of the model moments in this case.
-
Should the simulated model moments also be HP-filtered before comparison? Some references suggest that HP-filtering can alter the statistical properties of moments even if the model is already stationary, while others do not emphasize this. I would appreciate clarification on what the best practice is.
-
If HP-filtering is indeed required, how can this be implemented with method_of_moments(), given that the command does not appear to have a native HP-filter option?
-
Is there a reliable alternative way to handle this case that still provides asymptotic standard errors for parameter estimates, similar to what method_of_moments() offers?
Thank you very much for your guidance.
Thank you so much Professor.
Until the HP filter is natively implemented inside method_of_moments(), would applying sample_hp_filter() externally to the simulated series and then using those filtered series as variables in the method_of_moments() moment-matching procedure be an appropriate approach?
If this is correct, I understand that the HP-filtered cyclical variables would have to be declared as endogenous variables within the model and must hence appear in the model block to avoid errors.
Could you please advise on the best practice for incorporating these HP-filtered variables inside the Dynare model block? Is there a recommended way to define the HP-filtered cyclical components as auxiliary endogenous variables with equations approximating the HP filter within the model?
Thank you again for your time and help.
Dear Professor,
I just wanted to kindly follow up on my earlier question regarding incorporating HP-filtered variables within the method_of_moments framework in Dynare. I completely understand you must be very busy, but your guidance on the best practice would be immensely helpful as I move forward with my work.
Thank you again for your time and support.