-
-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Macro #18
Open
jpycroft
wants to merge
50
commits into
PSLmodels:main
Choose a base branch
from
jpycroft:macro
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Macro #18
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Demographics.py update
…slice from a DataFrame
…imm data in future
…rns, over 90s, smoothing
@jpycroft Thanks for working on the macro params! FYI, this branch has the demographics and macro changes. But I will take a look at those macros soon. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
@jdebacker @rickecon
This PR is to add macro_params.py to OG-UK-Calibration.
macro_params.py contains get_macro_params function, which produces / includes the seven macroeconomic parameters required for OG-UK. As of 18 May 2021, the values obtained are:
macro_parameters: {'initial_debt_ratio': 0.858, 'alpha_T': 0.14987823280692056, 'alpha_G': 0.23609202014014433, 'gamma': 0.30000000000000004, 'g_y': 1.775, 'r_gov_shift': 1.4872414588323613, 'r_gov_scale': -5.373278437402958}
The file contains complete information as to the origin of the data used. Much of the data was obtained from the UK Office of National Statistics (ONS). To my knowledge, much of the data is released as xlsx spreadsheets only, from which the few required values were copied.
To calculate the relationship between the government interest rate and the corporate interest rate, expressed as r_gov_shift and r_gov_scale, a regression was run of UK government bond rates against US corporate bond rates (used as a proxy for the global rate).