gcubed.constants

Defines a singleton class, Constants, that provides access to all constants.

class Constants:

Overview

This is a singleton class.

Most of the constants in GCUBED are variable names and prefixes.

VERSION: int

The version of the G-Cubed Python implementation.

BUILD: int

The build of the G-Cubed Python implementation.

DELTA: float

The delta used to compute numeric derivatives when linearising the model. This delta matches the value used in the Ox implementation of G-Cubed.

ROGY_PREFIX: str

The ROGY (potential output growth rate) variable prefix.

INFP_PREFIX: str

The INFP (inflation rate in PRID) variable prefix.

INFX_PREFIX: str

The INFX (inflation rate target) variable prefix.

PRID_PREFIX: str

The PRID (weighted price of domestic output) variable prefix.

REXC_PREFIX: str

The REXC variable prefix.

WAGE_PREFIX: str

The wage variable prefix.

NOMINAL_GDP_PREFIX: str

The nominal GDP variable prefix.

REAL_GDP_PREFIX: str

The real GDP variable prefix, LGDPR.

GDPR_PREFIX: str

The GDPR variable prefix.

US_REAL_GDP_RATIO_PREFIX: str

The ratio of regional real GDP to USA real GDP variable prefix.

REAL_INTEREST_RATE_PREFIX: str

The real interest rate variable prefix.

NOMINAL_INTEREST_RATE_PREFIX: str

The nominal interest rate variable prefix.

ALL_REAL_INTEREST_RATE_PREFIXES: list[str]

The real interest rate variable prefixes.

These are the prefixes of the variables that are set equal to the neutral real interest rate (set in the model configuration, ModelConfiguration.neutral_real_interest_rate) when doing linearisation of the model and when determining the adjustments to make to equate projections to observed data when doing the baseline projections.

  • INTF is the real short-run interest rate.
  • INTL is the real short-run interest rate, lagged by 1 period.
  • INTR is the 'risk-adjusted' real short-run interest rate, controlled by the central bank, equal to INTF plus RISR - an exogenous risk-premium in the yield curve. Note that RISR is typically zero in the databases and would be used to run simulation experiments.
ALL_NOMINAL_INTEREST_RATE_PREFIXES: list[str]

The nominal interest rate variable prefixes.

These are the prefixes of the variables that are set equal to the neutral real interest rate plus the expected inflation rate when doing linearisation of the model and when determining the adjustments to make to equate projections to observed data when doing the baseline projections.

  • INPN is the desired nominal short-run interest rate in the current period.
  • INTN is the nominal short-run interest rate, controlled by the central bank.
ALL_LAGGED_NOMINAL_INTEREST_RATE_PREFIXES: list[str]

The lagged nominal interest rate variable prefixes.

These are the prefixes of the variables that are set equal to the neutral real interest rate plus the expected inflation rate when doing linearisation of the model and when determining the adjustments to make to equate projections to observed data when doing the baseline projections.

  • INPL is the desired nominal short-run interest rate, lagged by 1 period.
BOND_RATE_PREFIXES: list[str]

The long bond rate (real and nominal) variable prefixes.

STATE_LEAD_VARIABLES: list[str]

The state vector lead (stl variable types in SYM) variable prefixes.