Skip to content

Set initial parameters #9

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

Merged
merged 17 commits into from
Feb 6, 2025
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
65 changes: 65 additions & 0 deletions config/industry_names.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
categories:
- Agriculture
- Forestry
- Fishing
- Mining
- "Manufacturing: food"
- "Manufacturing: textiles"
- "Manufacturing: wood"
- "Manufacturing: paper"
- Printing
- "Manufacturing: coke"
- "Manufacturing: chemicals"
- "Manufacturing: pharmaceuticals"
- "Manufacturing: rubber"
- "Manufacturing: minerals"
- "Manufacturing: metals"
- "Manufacturing: fabricated metals"
- "Manufacturing: computers"
- "Manufacturing: electrical"
- "Manufacturing: machinery"
- "Manufacturing: motor vehicles"
- "Manufacturing: other transport"
- "Manufacturing: other"
- "Machinery repair"
- Electricity
- Water
- Sewerage
- Construction
- "Wholesale/retail: motor vehicles"
- "Wholesale: other"
- "Retail: other"
- "Land transport"
- "Water transport"
- "Air transport"
- Warehousing
- Postal
- "Accommodation/food services"
- Publishing
- Film
- Telecoms
- Programming
- Financial
- Insurance
- "Other financial/insurance services"
- "Real estate"
- "Imputed rents"
- "Legal/accounting"
- Architecture
- "R&D"
- Advertising
- "Other professional"
- "Rental services"
- "Employment services"
- Travel
- "Other office services"
- "Public administration"
- Education
- Health
- "Social work"
- Arts
- Sports
- "Membership organizations"
- "Household goods repair"
- "Other personal services"
- "Household employers"
105 changes: 105 additions & 0 deletions config/settings.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
version: "2024-12-31"
experiment_run: 1

constants:
# Industry names file
industry_names: "industry_names.yml"
# IO table data year
data_year: 2019
# First date to simulate
first_date: "2020-01-01"
# Last date to simulate
last_date: "2025-10-01"

flags:
stochasticity:
# Use data from mat files
data_from_mat: false # Replace mat by better format

# Random initial values for parameters
random_initial_values: false

elasticities:
consumption:
- [3, 2.0]
eu_export_demand:
- [3, 2.0, 2.0]
rest_of_world__export_demand:
- [3, 2.0, 2.0]
production:
- [0.4, 0.75, 2.0]
investment:
- [0.4, 2.0]

files:
input_dir: input
output_dir: output
scenario: 0 # 0: noCovid, 1: covid

input_derived_dir: derived

inputs:
base:
input_output: "uk_input_output2019.xlsx"
imports: "uk_input_output2019.xlsx"
merge_codes_64: "mergeCodes64.xlsx"
merge_codes_105: "mergeCodes105.csv"

derived:
scenario_dependent:
# Time series: income of two types (lo, hi) in two scenarios (0,1) = (noCovid, covid)
lo_income: "noCollegeIncome.csv"
hi_income: "collegeIncome.csv"

# Time series: hours worked of two types (lo, hi) in two scenarios (0,1)
lo_hours: "noCollegeHours.csv"
hi_hours: "collegeHours.csv"

# Time series: capital in two scenarios (0,1)
capital: "capital.csv"

# Forecast scenarios
turnover_S: "turnover_s.csv"

scenario_independent:
# Time series: inventories (one scenario only)
inventory: "derived/{version}/inventories.csv"

# Base year: depreciation rates
depreciation: "depreciation.csv"

# Financial data
RiskFreeRate: "interestRate.csv"
assets: "firmData.csv"
DefaultSigma: "modelResults.csv"

# Forecast scenarios
gdp: "gdp_forecast.csv"

outputs:
scenario_dependent:
forecast_mat: "forecast.mat"
forecast_csv: "forecast.csv"

scenario_independent:
base_data: "ukdata.mat"
parms: "parms.mat"
log_p: "logp.mat"
log_Y: "logy.mat"
covid_csv: "cge_results.csv"
covid_mat: "turnover_model.mat"
trade_csv: "net_exports.csv"
simulate_economy_3_mat: "simEcon3.mat"
simulate_economy_3_csv: "simEcon3.csv"
comp_stats_results: "compStats.mat"

initial_params:
price_index:
eu: 1
eu_export: 1
rest_of_world: 1
rest_of_world_export: 1

beginning_price_of_capital: 1.0
leverage_grid_resolution: 10
assets_destroyed_in_bankrupcy: 0.12 # see Bernanke et al. page 1368
126 changes: 0 additions & 126 deletions settings.yml

This file was deleted.

Loading