Estimates the Greenbook narrative shocks
Project description
GreenbookNarrativeShocks
This package estimates up to date Romer and Romer Greenbook Narrative shocks, originally from A New Measure of Monetary Shocks: Derivation and Implications, 2004.
Installation
pip install greenbookshocks
Usage
The core class is the RRGB
(Romer and Romer GreenBook) class. When this class is instantiated it
downloads the data necessary to create the Romer and Romer Greenbook narrative shock series.
The user needs to supply the original data appendix file from
Romer and Romer, (2004)
with the path specified by the rrfname
argument in the class call, which defaults
to rrfname='RomerandRomerDataAppendix.xls'
. The user then needs to call the estimate_shocks()
method.
The following code exactly replicates the original shock series.
from rrgb import RRGB
from datetime import datetime
# Assemble Data
rrgb = RRGB(rrfname='RomerandRomerDataAppendix.xls', rr_override=True)
# Estimate shocks
shocks = rrgb.estimate_shocks()
The final shock series will be indexed by the meeting date. The user may then aggregate the series up with her preferred aggregation method.
Advanced Usage
The original dataset used in Romer and Romer, (2004)
was drawn from the text of the Greenbook itself. This package supplements this data with the Greenbook datasets
provided by the Federal Reserve Bank of Philadelphia which is drawn from internal forecast materials prepared by
the Federal Reserve Board of Governors staff. This dataset varies slightly from the Romer and Romer dataset. For
earlier periods, the Romer and Romer dataset contains a few additional forecast observations which this package
always uses. In 1972, the Philadelphia Fed dataset has additional observations. By default this package does not
use these observations, allowing it to exactly match the original Romer and Romer dataset. If the user would like
to use the full dataset then she may specify the rr_override
argument as False
, e.g. RRGB(rr_override=False)
,
the default behavior is True.
Custom models
The estimate_shocks()
method allows the user to specify the date range of the shocks, the control variables
used in the regression, wether or not to drop ZLB periods in estimation and the model to use to form the predicted
shocks. See the docstring for additional information.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file greenbook-shocks-0.0.2.tar.gz
.
File metadata
- Download URL: greenbook-shocks-0.0.2.tar.gz
- Upload date:
- Size: 10.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4462df397af619f928e3076cc95e32030f93622374a9a0f18c4bcdc96be39b86 |
|
MD5 | b7b349fd6fe2816adac8f64eaac69be3 |
|
BLAKE2b-256 | 034f8f28e2d4d140db151c25f6a2e52c02ef7265101998942d462ba2340602e6 |
File details
Details for the file greenbook_shocks-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: greenbook_shocks-0.0.2-py3-none-any.whl
- Upload date:
- Size: 26.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0214f64b24d5c1bcb570d05e0abf5681e6238e301351cc9c5e4c5a812b147a4e |
|
MD5 | 0f5ebb1bd4ac5d47709148d0972c69e9 |
|
BLAKE2b-256 | c820d20c093aee4be095a75ed1e69c8760f78907832f5f751e8979ca5c973be2 |