Skip to main content

GreenbookNarrativeShocks

codecov Basic Build

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.

Release files for greenbook-shocks 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for greenbook-shocks 0.0.2
File Size Uploaded
greenbook-shocks-0.0.2.tar.gz 10.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for greenbook-shocks 0.0.2
File Interpreter ABI Platform
greenbook_shocks-0.0.2-py3-none-any.whl Python 3 none any Details

Total release size:36.5 kB

Release files / greenbook-shocks-0.0.2.tar.gz

Download URL greenbook-shocks-0.0.2.tar.gz
Size 10.4 kB
Tags Source
SHA-256 checksum
How to use checksums
4462df397af619f928e3076cc95e32030f93622374a9a0f18c4bcdc96be39b86
BLAKE2b-256 checksum
How to use checksums
034f8f28e2d4d140db151c25f6a2e52c02ef7265101998942d462ba2340602e6
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / greenbook_shocks-0.0.2-py3-none-any.whl

Download URL greenbook_shocks-0.0.2-py3-none-any.whl
Size 26.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0214f64b24d5c1bcb570d05e0abf5681e6238e301351cc9c5e4c5a812b147a4e
BLAKE2b-256 checksum
How to use checksums
c820d20c093aee4be095a75ed1e69c8760f78907832f5f751e8979ca5c973be2
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page