Skip to content

equicirco/JCGECalibrate.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JCGE Calibrate logo

JCGECalibrate

What is a CGE?

A Computable General Equilibrium (CGE) model is a quantitative economic model that represents an economy as interconnected markets for goods and services, factors of production, institutions, and the rest of the world. It is calibrated with data (typically a Social Accounting Matrix) and solved numerically as a system of nonlinear equations until equilibrium conditions (zero-profit, market-clearing, and income-balance) hold within tolerance.

What is JCGE?

JCGE is a block-based CGE modeling and execution framework in Julia. It defines a shared RunSpec structure and reusable blocks so models can be assembled, validated, solved, and compared consistently across packages.

What is this package?

Calibration utilities for common CGE functional forms.

Responsibilities

  • Calibration helpers for CES/CET/Leontief/LES/Cobb–Douglas (as needed)
  • Benchmark replication checks and share/scale parameter reconstruction
  • No JuMP dependency

Canonical CSV schema (v0.1)

JCGECalibrate expects a single canonical CSV schema for model inputs. This schema is model-agnostic and can be generated by JCGEImportData.

Required files:

  • sets.csv — columns: set, item
  • sam.csv — SAM matrix with a label column for row labels and the remaining columns as SAM accounts

Optional files:

  • subsets.csv — columns: subset, parent_set, item
  • labels.csv — columns: set, item, label (optional description)
  • mappings.csv — columns: map, from_item, to_item
  • params.csv — columns: name, set1, index1, set2, index2, set3, index3, value, section

Notes:

  • Scalar parameters use empty index columns.
  • Section names should align with RunSpec sections (production, households, markets, etc.).
  • sam.csv uses the explicit label column (older Column1 or empty headers are tolerated by the loader for now).

Inputs observed in current example models

These parameter names appear in packages/JCGEExamples/models/*/data/ and should map into params.csv as name entries:

  • SAM-based models: sam.csv (plus sets from SAM labels)
  • Cameroon models: io, imat, wdist, xle, m0, e0, xd0, k0, id0, dst0, depr, rhoc, rhot, eta, pd0, tm0, itax, cles, gles, kio, dstr, wa0, te, and scalars (er, gr0, gdtot0, cdtot0, fsav0, mps0)
  • Korea models: io, imat, wdist, alphl, labres1, labres2, sectres, hhres, htax, cles, zz, and scalars (er, pindex, gdtot, deprecia, savings, invest, fsav, fbor, remit, tothhtax, y)

Non-goals

  • Model building or equation definitions

How to cite

If you use the JCGE framework, please cite:

Boero, R. JCGE - Julia Computable General Equilibrium Framework [software], 2026. DOI: 10.5281/zenodo.18282436 URL: https://JCGE.org

@software{boero_jcge_2026,
  title  = {JCGE - Julia Computable General Equilibrium Framework},
  author = {Boero, Riccardo},
  year   = {2026},
  doi    = {10.5281/zenodo.18282436},
  url    = {https://JCGE.org}
}

If you use this package, please cite:

Boero, R. JCGECalibrate.jl - Calibration utilities for CGE models in JCGE. [software], 2026. DOI: 10.5281/zenodo.18225968 URL: https://Calibrate.JCGE.org SourceCode: https://github.com/equicirco/JCGECalibrate.jl

@software{boero_jcgecalibrate_2026,
  title  = {JCGECalibrate.jl - Calibration utilities for CGE models in JCGE.},
  author = {Boero, Riccardo},
  year   = {2026},
  doi    = {10.5281/zenodo.18225968},
  url    = {https://Calibrate.JCGE.org}
}

If you use a specific tagged release, please cite the version DOI assigned on Zenodo for that release (preferred for exact reproducibility).