gcubed.model_parameters.capital_stock_returns
Shared arithmetic for capital stocks and rates of return.
Raw productive-capital-to-GDP ratios below this value are reported.
Upper inclusive bound for an investment-to-capital diagnostic.
The complete family of runtime-derived capital-return parameters.
Supported provenance labels for standard-sector and Y returns.
Supported provenance labels for household-capital returns.
Runtime-derived capital returns and their cell-level source audit.
Calculate the common standard-sector and Y return from raw mapped VKB.
The raw productive capital benchmark is never clipped. A low benchmark to final-IO-GDP ratio is reported without changing the calculation.
Arguments
capital_services: Nonnegative services for all standard sectors and Y.
productive_capital_stock: Positive raw mapped regional VKB benchmark.
final_io_nominal_gdp: Positive reconciled final-IO nominal GDP.
region: Region label included in any low-ratio warning.
Returns
The common regional rate of return as a decimal.
Exceptions
Raises ValueError for non-finite, negative, or non-positive aggregate
inputs.
Calculate the Z return implied by an explicit stock-to-GDP ratio.
Arguments
capital_services: Positive household capital services.
final_io_nominal_gdp: Positive reconciled final-IO nominal GDP.
household_capital_to_gdp_multiplier: Household-stock GDP multiple.
Returns
The regional household rate of return as a decimal.
Exceptions
Raises ValueError if any input is non-positive or non-finite.
Calculate a nominal capital stock from services and a positive return.
Arguments
capital_services: Nonnegative finite services, with labels preserved.
rate_of_return: Positive finite decimal rate.
Returns
Capital services divided by the rate, preserving the input container.
Convert nominal capital stock into database percent-of-GDP units.
Arguments
nominal_capital_stock: Nonnegative finite nominal capital stock.
final_io_nominal_gdp: Positive reconciled final-IO nominal GDP.
Returns
Capital stock in the database's percent-of-GDP convention.
Recover one return from IO services and a database capital stock.
Arguments
capital_services: Positive base-year IO capital services.
final_io_nominal_gdp: Positive base-year LGDPN value.
capital_stock_percent_of_gdp: Positive base-year CAP* value.
Returns
The matching sector-specific decimal rate of return.
Return complete capital-return row labels in user-parameter order.
Arguments
standard_sectors: Ordered, unique standard-sector members.
Returns
Standard-sector labels followed by unparenthesized Y and Z labels.
Build a row-level audit of capital-return values and their sources.
Overview
Uses one stable vocabulary across source-stock construction and database/IO parameter recovery. Standard sectors and Y share the productive source; Z has its independent household source.
Arguments
parameters: Complete labelled capital-return parameter family.standard_sectors: Ordered standard-sector members.regions: Ordered model regions.productive_source:VKB/IOordatabase/IO.household_source:WID/IOordatabase/IO.
Returns
One record per parameter and region, retaining parameter and region order.
Exceptions
Raises ValueError for an invalid source label or parameter family.
Validate labels, ordering, shape, and values of a return family.
Arguments
parameters: Complete combined user-parameter dataframe.
standard_sectors: Expected ordered standard-sector members.
regions: Expected ordered region columns.
Exceptions
Raises ValueError for duplicate, missing, reordered, non-finite, or
non-positive content.
Derive the complete family from base-year IO services and stocks.
Arguments
io_tables: Region-keyed final base-year IO tables.
database: Database indexed by full variable name.
base_year: Model base year shared by the two sources.
standard_sectors: Expected ordered standard-sector members.
regions: Expected ordered model regions.
Returns
The complete validated runtime parameter table and cell-level diagnostic.
Exceptions
Raises ValueError for missing, duplicate, malformed, non-finite, or
non-positive source data.
Return the validated runtime capital-return parameter table.
Classify a ratio without changing either investment or capital.
Arguments
ratio: Annual gross or installed investment divided by capital.
Returns
A classification warning below zero or strictly above 20 percent.