@@ -764,17 +764,17 @@ def dynamic_revenue_decomposition(
764
764
# Behavior effect
765
765
pct_change2 = (
766
766
(tax_rev_dict [type ]["C" ] - tax_rev_dict [type ]["B" ])
767
- / tax_rev_dict [type ]["B " ]
767
+ / tax_rev_dict [type ]["A " ]
768
768
) * 100
769
769
# Macro effect
770
770
pct_change3 = (
771
771
(tax_rev_dict [type ]["D" ] - tax_rev_dict [type ]["C" ])
772
- / tax_rev_dict [type ]["C " ]
772
+ / tax_rev_dict [type ]["A " ]
773
773
) * 100
774
774
# Dynamic effect (behavior + macro)
775
775
pct_change4 = (
776
776
(tax_rev_dict [type ]["D" ] - tax_rev_dict [type ]["B" ])
777
- / tax_rev_dict [type ]["B " ]
777
+ / tax_rev_dict [type ]["A " ]
778
778
) * 100
779
779
# Total change in tax revenue (rates + behavior + macro)
780
780
pct_change5 = (
@@ -803,7 +803,7 @@ def dynamic_revenue_decomposition(
803
803
start_index : start_index + num_years
804
804
].sum ()
805
805
)
806
- / tax_rev_dict [type ]["B " ][
806
+ / tax_rev_dict [type ]["A " ][
807
807
start_index : start_index + num_years
808
808
].sum ()
809
809
) * 100
@@ -816,7 +816,7 @@ def dynamic_revenue_decomposition(
816
816
start_index : start_index + num_years
817
817
].sum ()
818
818
)
819
- / tax_rev_dict [type ]["C " ][
819
+ / tax_rev_dict [type ]["A " ][
820
820
start_index : start_index + num_years
821
821
].sum ()
822
822
) * 100
@@ -829,7 +829,7 @@ def dynamic_revenue_decomposition(
829
829
start_index : start_index + num_years
830
830
].sum ()
831
831
)
832
- / tax_rev_dict [type ]["B " ][
832
+ / tax_rev_dict [type ]["A " ][
833
833
start_index : start_index + num_years
834
834
].sum ()
835
835
) * 100
0 commit comments