Skip to content

Commit

Permalink
Merge pull request #986 from jdebacker/dyn_decomp
Browse files Browse the repository at this point in the history
Merging
  • Loading branch information
rickecon authored Sep 18, 2024
2 parents 022d3b4 + c79c4c7 commit a6c2bcb
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions ogcore/output_tables.py
Original file line number Diff line number Diff line change
Expand Up @@ -764,17 +764,17 @@ def dynamic_revenue_decomposition(
# Behavior effect
pct_change2 = (
(tax_rev_dict[type]["C"] - tax_rev_dict[type]["B"])
/ tax_rev_dict[type]["B"]
/ tax_rev_dict[type]["A"]
) * 100
# Macro effect
pct_change3 = (
(tax_rev_dict[type]["D"] - tax_rev_dict[type]["C"])
/ tax_rev_dict[type]["C"]
/ tax_rev_dict[type]["A"]
) * 100
# Dynamic effect (behavior + macro)
pct_change4 = (
(tax_rev_dict[type]["D"] - tax_rev_dict[type]["B"])
/ tax_rev_dict[type]["B"]
/ tax_rev_dict[type]["A"]
) * 100
# Total change in tax revenue (rates + behavior + macro)
pct_change5 = (
Expand Down Expand Up @@ -803,7 +803,7 @@ def dynamic_revenue_decomposition(
start_index : start_index + num_years
].sum()
)
/ tax_rev_dict[type]["B"][
/ tax_rev_dict[type]["A"][
start_index : start_index + num_years
].sum()
) * 100
Expand All @@ -816,7 +816,7 @@ def dynamic_revenue_decomposition(
start_index : start_index + num_years
].sum()
)
/ tax_rev_dict[type]["C"][
/ tax_rev_dict[type]["A"][
start_index : start_index + num_years
].sum()
) * 100
Expand All @@ -829,7 +829,7 @@ def dynamic_revenue_decomposition(
start_index : start_index + num_years
].sum()
)
/ tax_rev_dict[type]["B"][
/ tax_rev_dict[type]["A"][
start_index : start_index + num_years
].sum()
) * 100
Expand Down

0 comments on commit a6c2bcb

Please sign in to comment.