Skip to content

Commit c79c4c7

Browse files
committed
change base for pct changes
1 parent 92f7594 commit c79c4c7

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

ogcore/output_tables.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -764,17 +764,17 @@ def dynamic_revenue_decomposition(
764764
# Behavior effect
765765
pct_change2 = (
766766
(tax_rev_dict[type]["C"] - tax_rev_dict[type]["B"])
767-
/ tax_rev_dict[type]["B"]
767+
/ tax_rev_dict[type]["A"]
768768
) * 100
769769
# Macro effect
770770
pct_change3 = (
771771
(tax_rev_dict[type]["D"] - tax_rev_dict[type]["C"])
772-
/ tax_rev_dict[type]["C"]
772+
/ tax_rev_dict[type]["A"]
773773
) * 100
774774
# Dynamic effect (behavior + macro)
775775
pct_change4 = (
776776
(tax_rev_dict[type]["D"] - tax_rev_dict[type]["B"])
777-
/ tax_rev_dict[type]["B"]
777+
/ tax_rev_dict[type]["A"]
778778
) * 100
779779
# Total change in tax revenue (rates + behavior + macro)
780780
pct_change5 = (
@@ -803,7 +803,7 @@ def dynamic_revenue_decomposition(
803803
start_index : start_index + num_years
804804
].sum()
805805
)
806-
/ tax_rev_dict[type]["B"][
806+
/ tax_rev_dict[type]["A"][
807807
start_index : start_index + num_years
808808
].sum()
809809
) * 100
@@ -816,7 +816,7 @@ def dynamic_revenue_decomposition(
816816
start_index : start_index + num_years
817817
].sum()
818818
)
819-
/ tax_rev_dict[type]["C"][
819+
/ tax_rev_dict[type]["A"][
820820
start_index : start_index + num_years
821821
].sum()
822822
) * 100
@@ -829,7 +829,7 @@ def dynamic_revenue_decomposition(
829829
start_index : start_index + num_years
830830
].sum()
831831
)
832-
/ tax_rev_dict[type]["B"][
832+
/ tax_rev_dict[type]["A"][
833833
start_index : start_index + num_years
834834
].sum()
835835
) * 100

0 commit comments

Comments
 (0)