Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
27ec428
Update YAML file for new 2024 BEA data
mitchphillipson Nov 12, 2025
6fb0d2b
Add marginal commodities to YAML files
mitchphillipson Nov 12, 2025
277354e
Zero marginal tax/subsidy and replace value added
mitchphillipson Nov 12, 2025
4e9deb8
Update package versions
mitchphillipson Nov 12, 2025
d572290
Update CI
mitchphillipson Nov 12, 2025
2fa2d87
Remove nightly tests
mitchphillipson Nov 12, 2025
d3b1a85
Update `national_mpsge` to default to the most recent year
mitchphillipson Nov 12, 2025
5251367
Update documentation with most recent code
mitchphillipson Nov 12, 2025
549d3ea
Fix BEA link
mitchphillipson Nov 12, 2025
1925442
Update documentation
mitchphillipson Nov 12, 2025
37b384a
Update README
mitchphillipson Nov 12, 2025
d6f6b02
Fix typo in docs
mitchphillipson Nov 12, 2025
32ccb97
Move images inside data directory
mitchphillipson Nov 12, 2025
b9d02fd
Update documentation
mitchphillipson Nov 12, 2025
e34995a
Add `value_labels` to the YAML file
mitchphillipson Nov 12, 2025
6ee1c4f
Remove comments
mitchphillipson Nov 12, 2025
750ba6d
Update gitignore
mitchphillipson Nov 12, 2025
9728924
Add documentation for Australia
mitchphillipson Nov 12, 2025
eb170ac
Add documentation for Australia
mitchphillipson Nov 12, 2025
979b90c
Reorganize model description for clarity
mitchphillipson Nov 12, 2025
6ae714c
Fix typo
mitchphillipson Nov 12, 2025
fc027fd
Upload YAML and add example
mitchphillipson Nov 12, 2025
9dff45a
Update Documentation
mitchphillipson Nov 13, 2025
e0f4fcc
Fix typo
mitchphillipson Nov 13, 2025
ee1b1e3
Update location of assets
mitchphillipson Nov 13, 2025
d135aa1
Add calibration
mitchphillipson Nov 13, 2025
50b0f47
Update model documentation
mitchphillipson Nov 13, 2025
53742b8
Write calibration docs
mitchphillipson Nov 13, 2025
9596cf7
Change name of model overview
mitchphillipson Nov 13, 2025
e103706
Update titles of US data
mitchphillipson Nov 13, 2025
3f30ead
Add module to function names
mitchphillipson Nov 13, 2025
7ea0271
Shorten data names in table
mitchphillipson Nov 13, 2025
31365b1
Update australia docs
mitchphillipson Jan 7, 2026
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
2 changes: 1 addition & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
version:
- '1.10'
- '1.11'
- 'nightly'
- '1.12'
os:
- ubuntu-latest
- windows-latest
Expand Down
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,8 @@ JuliaLocalPreferences.toml
main.jl
settings.json
.vscode/settings.json

*.aux
*.log
summary_local.yaml
australia.yaml
10 changes: 5 additions & 5 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ ZipFile = "a5390f91-8eb1-5f08-bee0-b1d1ffed6cea"

[compat]
CSV = "0.10.15"
DataFrames = "1.7.0"
DataStructures = "0.18.22, 0.19"
DataFrames = "1.8.1"
DataStructures = "0.19"
Downloads = "1.6.0"
JuMP = "1.28.0"
MPSGE = "0.6.1"
JuMP = "1.29"
MPSGE = "0.6.4"
WiNDCContainer = "0.3.0"
XLSX = "0.10.4"
YAML = "0.4.14"
YAML = "0.4"
ZipFile = "0.10.1"
julia = "1.10"

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ x -> sort(x, :diff)



M = national_mpsge(Y; year = 2023)
M = national_mpsge(Y) # add keyword year = 2023 to solve for a specific year
MPSGE.solve!(M; cumulative_iteration_limit=0) # Solve at benchmark

MPSGE.set_value!.(M[:Absorption_Tax], 0) # Set some taxes to 0
Expand Down
3 changes: 3 additions & 0 deletions docs/assets/custom.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
img {
width: 75%;
}
34 changes: 25 additions & 9 deletions docs/make.jl
Original file line number Diff line number Diff line change
@@ -1,23 +1,38 @@
using Documenter, WiNDCNational, Literate

# Copy YAML Files to docs
cp(joinpath(@__DIR__, "..", "src", "united_states", "summary.yaml"), # Source
joinpath(@__DIR__, "src", "data", "united_states", "summary.yaml"); # `Dest
force = true)

cp(joinpath(@__DIR__, "..", "src", "united_states", "detailed.yaml"), # Source
joinpath(@__DIR__, "src", "data", "united_states", "detailed.yaml"); # `Dest
force = true)

const _PAGES = [
"Introduction" => ["index.md"],
"Data" => [
"data_sources.md",
"data_build.md",
"sets.md"
],
"National Module" => ["overview.md"],
"United States" => [
"data/united_states/data_sources.md",
"data/united_states/data_build.md",
"data/united_states/sets.md",
"data/united_states/build_local.md"
],
"Australia" => [
"data/australia/australia_data.md",
"data/australia/load_data.md"
],
],
"Calibration" => ["calibration.md"],
"The National Model" => ["model/overview.md"],
"API" => ["api.md"]
]


literate_files = Dict(
"sets" => (
input = "src/sets.jl",
output = "src/"
input = "src/data/united_states/sets.jl",
output = "src/data/united_states/"
),
)

Expand All @@ -35,9 +50,10 @@ end
makedocs(
sitename="WiNDCNational.jl",
authors="Mitch Phillipson",
format = Documenter.HTML(),
format = Documenter.HTML(assets = ["assets/custom.css"]),
modules = [WiNDCNational],
pages = _PAGES
pages = _PAGES,

)


Expand Down
5 changes: 5 additions & 0 deletions docs/src/calibration.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Overview

The calibration routine uses a standard least-squares approach to fit model parameters to observed data. The `calibrate` function is inherited from `WiNDCContainer`, but requires specification of exogenous (fixed) variables and constraints to guide the calibration process. Variables are fixed by [`WiNDCNational.calibrate_fix_variables`](@ref) and the constraints are defined using [`WiNDCNational.calibrate_constraints`](@ref).

The `calibrate` function returns a pair `(table, JuMP.Model)` where `table` is a WiNDCTable type and the `JuMP.Model` is the JuMP model used in the calibration. The JuMP model can be used to determine if the model calibrates and debug the constraints if it does not.
13 changes: 13 additions & 0 deletions docs/src/data/australia/australia_data.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# [Data Sources](@id australia_data_sources)

We use the Supply and Use tables provided by the Australian Bureau of Statistics (ABS).

## Australian Bureau of Statistics - Supply and Use Tables

Scroll down to the `Data Downloads` section of the
[ABS Website](https://www.abs.gov.au/statistics/economy/national-accounts/australian-national-accounts-supply-use-tables/latest-release) and download the three tables:
- `Supply Table` - The supply table
- `Use Table` - The use table
- `Primary Inputs Table` - Value Added

This data is only available in `XLSB` format, which Julia is unable to open. You must first manually convert the file to `XLSX` format using Excel.
Loading
Loading