In [1]:
import sys
sys.path.append("../")
import taxcalc
from taxcalc import *
import pandas as pd
import numpy as np
In [2]:
# Create a Records object for Plan X and Plan Y
records_x = Records("../puf2.csv")
records_y = Records("../puf2.csv")
# Create a Parameters object for Plan X and Plan Y
params_x = Parameters(start_year=2013)
params_y = Parameters(start_year=2013)
# Create two Calculators
calc_x = Calculator(parameters=params_x, records=records_x)
calc_y = Calculator(parameters=params_y, records=records_y)
In [3]:
# Modify the relevant parameter for the Plan-Y Calculator.
calc_y.rt7 = calc_y.rt7 + .1
# Demonstrate that Plan X and Plan Y calculators are indeed different.
print(calc_x.rt7)
print(calc_y.rt7)
In [4]:
# Call the behavioral effects calculator and create a new Plan Y Calculator obect.
calc_y_behavioral = behavior(calc_x, calc_y)
# Demonstrate that taxpayers' income was affected by the tax change.
print(np.sum(calc_y.e00200))
print(np.sum(calc_y_behavioral.e00200))
In [ ]: