Skip to content

Commit

Permalink
Merge pull request PSLmodels#927 from jdebacker/clean_taxfunc
Browse files Browse the repository at this point in the history
Merging
  • Loading branch information
rickecon authored Apr 23, 2024
2 parents 8f1d770 + 420b815 commit 565fdef
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 14 deletions.
12 changes: 1 addition & 11 deletions ogcore/txfunc.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""
------------------------------------------------------------------------
This script reads in data generated from the Tax Calculator model.
This script reads in data generated from a tax-benefit microsimulation model.
It then estimates tax functions tau_{s,t}(x,y), where
tau_{s,t} is the effective tax rate, marginal tax rate on labor income,
or the marginal tax rate on capital income, for a given age (s) in a
Expand Down Expand Up @@ -1388,12 +1388,9 @@ def tax_func_estimate(
starting_age,
ending_age,
start_year=DEFAULT_START_YEAR,
baseline=True,
analytical_mtrs=False,
tax_func_type="DEP",
age_specific=False,
reform={},
data=None,
desc_data=False,
graph_data=False,
graph_est=False,
Expand All @@ -1416,16 +1413,12 @@ def tax_func_estimate(
starting_age (int): minimum age to estimate tax functions for
ending_age (int): maximum age to estimate tax functions for
start_yr (int): first year of budget window
baseline (bool): whether these are the baseline tax functions
analytical_mtrs (bool): whether to use the analytical derivation
of the marginal tax rates (and thus only need to estimate
the effective tax rate functions)
tax_func_type (str): functional form of tax functions
age_specific (bool): whether to estimate age specific tax
functions
reform (dict): policy reform dictionary for Tax-Calculator
data (str or Pandas DataFrame): path to or data to use in
Tax-Calculator
client (Dask client object): client
num_workers (int): number of workers to use for parallelization
with Dask
Expand Down Expand Up @@ -1479,9 +1472,6 @@ def tax_func_estimate(
# --------------------------------------------------------------------
# start_time = scalar, current processor time in seconds (float)
# output_dir = string, directory to which plots will be saved
# micro_data = dictionary, BW (one for each year) DataFrames,
# each of which has variables with observations from
# Tax-Calculator
# t = integer >= start_year, index for year of analysis
# --------------------------------------------------------------------
# '''
Expand Down
3 changes: 0 additions & 3 deletions tests/test_txfunc.py
Original file line number Diff line number Diff line change
Expand Up @@ -688,12 +688,9 @@ def test_tax_func_estimate(tmpdir, dask_client):
starting_age,
ending_age,
start_year=2030,
baseline=baseline,
analytical_mtrs=analytical_mtrs,
tax_func_type=tax_func_type,
age_specific=age_specific,
reform=reform,
data=data,
client=dask_client,
num_workers=NUM_WORKERS,
tax_func_path=test_path,
Expand Down

0 comments on commit 565fdef

Please sign in to comment.