Merge Request: Refactor Method of Moments Toolbox for Upcoming Bayesian IRF Matching Integration
This merge request refactors the existing code in the Method of Moments toolbox (and also estimation) to prepare for the integration of Bayesian IRF (Impulse Response Function) Matching. The refactoring includes breaking down existing code into reusable utility functions and restructuring the
mom.run function for enhanced readability and maintainability.
- Refactored code snippets common to both
- Introduced utility functions that will be reused in future Bayesian IRF Matching integration.
- Restructured the
mom.runfunction in the Method of Moments toolbox to improve code readability and separation of concerns.
To facilitate a smoother code review process, I've broken down the changes into multiple smaller commits. Each commit tackles a specific refactoring task and can be reviewed independently.
Once this merge request is approved and merged, I will proceed to open a subsequent merge request that will introduce the Bayesian IRF Matching capabilities to the toolbox. Particularly, I need to make changes to the preprocessor first.
Thank you for taking the time to review this merge request. I look forward to your feedback.
PS: This message was written with the help of ChatGPT :-)