Tax Functions

The government is not an optimizing agent in OG-USA. The government levies taxes on households, provides transfers to households, levies taxes on firms, spends resources on public goods, and makes rule-based adjustments to stabilize the economy in the long-run. The government can run budget deficits or surpluses in a given year and must, therefore, be able to accumulate debt or savings.

The government sector influences households through two terms in the budget constraint (1)—government transfers \(TR_{t}\) and through the total tax liability function \(T_{s,t}\), which can be decomposed into the effective tax rate times total income (2). In this chapter, we detail the household tax component of government activity \(T_{s,t}\) in OG-USA, along with our method of incorporating detailed microsimulation data into a dynamic general equilibrium model.

Incorporating realistic tax and incentive detail into a general equilibrium model is notoriously difficult for two reasons. First, it is impossible in a dynamic general equilibrium model to capture all of the dimensions of heterogeneity on which the real-world tax rate depends. For example, a household’s tax liability in reality depends on filing status, number of dependents, many types of income, and some characteristics correlated with age. A good heterogeneous agent DGE model tries to capture the most important dimensions of heterogeneity, and necessarily neglects the other dimensions.

The second difficulty in modeling realistic tax and incentive detail is the need for good microeconomic data on the individuals who make up the economy from which to simulate behavioral responses and corresponding tax liabilities and tax rates.

OG-USA follows the method of [DEP19] of generating detailed tax data on effective tax rates and marginal tax rates for a sample of tax filers along with their respective income and demographic characteristics and then using that data to estimate parametric tax functions that can be incorporated into OG-USA.

Effective and Marginal Tax Rates

Before going into more detail regarding how we handle these two difficulties in OG-USA, we need to define some functions and make some notation. For notational simplicity, we will use the variable \(x\) to summarize labor income, and we will use the variable \(y\) to summarize capital income.

(111)\[ x_{j,s,t} \equiv w_{t}e_{j,s}n_{j,s,t} \quad\forall j, t \quad\text{and}\quad E+1\leq s\leq E+S\]
(112)\[ y_{j,s,t} \equiv r_{hh,t}b_{j,s,t} \quad\forall j, t \quad\text{and}\quad E+1\leq s\leq E+S\]

We can express total tax liability \(T_{s,t}\) from the household budget constraint (1) as an effective tax rate multiplied by total income.

(113)\[ T_{s,t} = \tau^{etr}_{s,t}(x_{j,s,t}, y_{j,s,t})\left(x_{j,s,t} + y_{j,s,t}\right)\]

Rearranging (113) gives the definition of an effective tax rate (\(ETR\)) as total tax liability divided by unadjusted gross income, or rather, total tax liability as a percent of unadjusted gross income.

A marginal tax rate (\(MTR\)) is defined as the change in total tax liability from a small change income. In OG-USA, we differentiate between the marginal tax rate on labor income (\(MTRx\)) and the marginal tax rate on capital income (\(MTRy\)).

(114)\[ \tau^{mtrx} \equiv \frac{\partial T_{s,t}}{\partial w_t e_{j,s}n_{j,s,t}} = \frac{\partial T_{s,t}}{\partial x_{j,s,t}} \quad\forall j,t \quad\text{and}\quad E+1\leq s\leq E+S\]
(115)\[ \tau^{mtry} \equiv \frac{\partial T_{s,t}}{\partial r_{hh,t}b_{j,s,t}} = \frac{\partial T_{s,t}}{\partial y_{j,s,t}} \qquad\quad\forall j,t \quad\text{and}\quad E+1\leq s\leq E+S\]

As we show in Section Optimality Conditions, the derivative of total tax liability with respect to labor supply \(\frac{\partial T_{s,t}}{n_{j,s,t}}\) and the derivative of total tax liability next period with respect to savings \(\frac{\partial T_{s+1,t+1}}{b_{j,s+1,t+1}}\) show up in the household Euler equations for labor supply (9) and savings (10), respectively. It is valuable to be able to express those marginal tax rates, for which we have no data, as marginal tax rates for which we do have data. The following two expressions show how the marginal tax rates of labor supply can be expressed as the marginal tax rate on labor income times the household-specific wage and how the marginal tax rate of savings can be expressed as the marginal tax rate of capital income times the interest rate.

(116)\[ \frac{\partial T_{s,t}}{\partial n_{j,s,t}} = \frac{\partial T_{s,t}}{\partial w_t e_{j,s}n_{j,s,t}}\frac{\partial w_{t}e_{j,s}n_{j,s,t}}{\partial n_{j,s,t}} = \frac{\partial T_{s,t}}{\partial w_{t}e_{j,s}n_{j,s,t}}w_t e_{j,s} = \tau^{mtrx}_{s,t}w_t e_{j,s}\]
(117)\[ \frac{\partial T_{s,t}}{\partial b_{j,s,t}} = \frac{\partial T_{s,t}}{\partial r_{hh,t}b_{j,s,t}}\frac{\partial r_{hh,t}b_{j,s,t}}{\partial b_{j,s,t}} = \frac{\partial T_{s,t}}{\partial r_{hh,t}b_{j,s,t}}r_{hh,t} = \tau^{mtry}_{s,t}r_{hh,t}\]

Microeconomic Data

For OG-USA, we use an open source microsimulation model called Tax-Calculator that uses microeconomic data on U.S. households from the Internal Revenue Service (IRS) Statistics of Income (SOI) Public Use File (PUF).1 For users that have not paid for access to the Public Use File (PUF), Tax-Calculator has an option to use a CPS matched dataset that is publicly available free of charge that has the same general properties as the PUF.

Tax-Calculator starts with the underlying population microeconomic data, in which each observation is a filer with a population weight that renders the sample representative. It then processes the relevant income and demographic characteristics in order to calculate the tax liability of each individual, according to all the rich tax law of the United States tax code. Tax-Calculator can then calculate effective tax rates for all of these individuals, thereby creating a sample of how ETR’s are related to other variables in our OG-USA model, such as total income \(x + y\), labor income \(x\), and capital income \(y\). Tax-Calculator can also generate marginal tax rates by adding a dollar to each filer’s income of a particular type and calculate how the filer’s tax liability changes. This is a finite difference calculation of a derivative.

Figure Fig. 13 shows a scatter plot of \(ETR\)’s for 43-year-olds in 2017 and unadjusted gross income \(x + y\). It is clear that \(ETR\) is positively related to income. It is also clear that a significant number of filers have a negative \(ETR\). We will discuss in Section Fitting Tax Functions the functional form OG-USA uses to best capture the main characteristics of these ETR data.

../../_images/Compare_ETR_functions.png

Fig. 13 Plot of estimated \(ETR\) functions: \(t=2017\) and \(s=43\) under current law

Figure Fig. 14 shows 3D scatter plots of \(ETR\), \(MTRx\), and \(MTRy\) (and a histogram of the data) with the labor income and capital income, separately, of each age-42 filer in 2017, generated by Tax-Calculator. This figure presents the main visual evidence for the functional form we use to fit tax functions to these data in Section Fitting Tax Functions. Figure Fig. 14 presents strong evidence that the tax rate—\(ETR\), \(MTRx\), and \(MTRy\)—is most accurately modeled as a function of labor income and capital income, separately: \(\tau(x,y)\).

../../_images/Age42_2017_scatters.png

Fig. 14 Scatter plot of ETR, MTRx, MTRy, and histogram as functions of labor income and capital income from microsimulation model: \(t=2017\) and \(s=42\) under current law. Note: Axes in the histogram in the lower-right panel have been switched relative to the other three figures in order to see the distribution more clearly.

Fitting Tax Functions

In looking at the 2D scatter plot on effective tax rates as a function of total income in Figure Fig. 13 and the 3D scatter plots of \(ETR\), \(MTRx\), and \(MTRy\) in Figure Fig. 14, it is clear that all of these rates exhibit negative exponential or logistic shape. This empirical regularity allows us to make an important and nonrestrictive assumption. We can fit parametric tax rate functions to these data that are constrained to be monotonically increasing in labor income and capital income. This assumption of monotonicity is computationally important as it preserves a convex budget set for each household, which is important for being able to solve many household lifetime problems over a large number of periods.

Default Tax Functional Form

For the default option, OG-USA follows the approach of [DEP19] in using the following functional form to estimate tax functions for each age \(s=E+1, E+2, ... E+S\) in each time period \(t\). This option can be manually selected by setting the parameter tax_func_type="DEP". Alternative specifications are outlined in Section Alternative Functional Forms below. Equation (118) is written as a generic tax rate, but we use this same functional form for \(ETR\)’s, \(MTRx\)’s, and \(MTRy\)’s.

(118)\[\begin{split} \tau(x,y) = &\Bigl[\tau(x) + shift_x\Bigr]^\phi\Bigl[\tau(y) + shift_y\Bigr]^{1-\phi} + shift \\ &\text{where}\quad \tau(x) \equiv (max_x - min_x)\left(\frac{Ax^2 + Bx}{Ax^2 + Bx + 1}\right) + min_x \\ &\quad\text{and}\quad \tau(y) \equiv (max_y - min_y)\left(\frac{Cy^2 + Dy}{Cy^2 + Dy + 1}\right) + min_y \\ &\text{where}\quad A,B,C,D,max_x,max_y,shift_x,shift_y > 0 \quad\text{and}\quad\phi\in[0,1] \\ &\quad\text{and}\quad max_x > min_x \quad\text{and}\quad max_y > min_y\end{split}\]

The parameters values will, in general, differ across the different functions (effective and marginal rate functions) and by age, \(s\), and tax year, \(t\). We drop the subscripts for age and year from the above exposition for clarity.

By assuming each tax function takes the same form, we are breaking the analytical link between the the effective tax rate function and the marginal rate functions. In particular, one could assume an effective tax rate function and then use the analytical derivative of that to find the marginal tax rate function. However, we’ve found it useful to separately estimate the marginal and average rate functions. One reason is that we want the tax functions to be able to capture policy changes that have differential effects on marginal and average rates. For example, a change in the standard deduction for tax payers would have a direct effect on their average tax rates. But it will have secondary effect on marginal rates as well, as some filers will find themselves in different tax brackets after the policy change. These are smaller and second order effects. When tax functions are are fit to the new policy, in this case a lower standard deduction, we want them to be able to represent this differential impact on the marginal and average tax rates. The second reason is related to the first. As the additional flexibility allows us to model specific aspects of tax policy more closely, it also allows us to better fit the parameterized tax functions to the data.

The key building blocks of the functional form Equation (118) are the \(\tau(x)\) and \(\tau(y)\) univariate functions. The ratio of polynomials in the \(\tau(x)\) function \(\frac{Ax^2 + Bx}{Ax^2 + Bx + 1}\) with positive coefficients \(A,B>0\) and positive support for labor income \(x>0\) creates a negative-exponential-shaped function that is bounded between 0 and 1, and the curvature is governed by the ratio of quadratic polynomials. The multiplicative scalar term \((max_x-min_x)\) on the ratio of polynomials and the addition of \(min_x\) at the end of \(\tau(x)\) expands the range of the univariate negative-exponential-shaped function to \(\tau(x)\in[min_x, max_x]\). The \(\tau(y)\) function is an analogous univariate negative-exponential-shaped function in capital income \(y\), such that \(\tau(y)\in[min_y,max_y]\).

The respective \(shift_x\) and \(shift_y\) parameters in Equation (118) are analogous to the additive constants in a Stone-Geary utility function. These constants ensure that the two sums \(\tau(x) + shift_x\) and \(\tau(y) + shift_y\) are both strictly positive. They allow for negative tax rates in the \(\tau(\cdot)\) functions despite the requirement that the arguments inside the brackets be strictly positive. The general \(shift\) parameter outside of the Cobb-Douglas brackets can then shift the tax rate function so that it can accommodate negative tax rates. The Cobb-Douglas share parameter \(\phi\in[0,1]\) controls the shape of the function between the two univariate functions \(\tau(x)\) and \(\tau(y)\).

This functional form for tax rates delivers flexible parametric functions that can fit the tax rate data shown in Figure Fig. 14 as well as a wide variety of policy reforms. Further, these functional forms are monotonically increasing in both labor income \(x\) and capital income \(y\). This characteristic of monotonicity in \(x\) and \(y\) is essential for guaranteeing convex budget sets and thus uniqueness of solutions to the household Euler equations. The assumption of monotonicity does not appear to be a strong one when viewing the the tax rate data shown in Figure Fig. 14. While it does limit the potential tax systems to which one could apply our methodology, tax policies that do not satisfy this assumption would result in non-convex budget sets and thus require non-standard DGE model solutions methods and would not guarantee a unique equilibrium. The 12 parameters of our tax rate functional form from (118) are summarized in Table 8.

Table 8 Description of tax rate function \(\tau(x,y)\) parameters.

Symbol

Description

\(A\)

Coefficient on squared labor income term \(x^2\) in \(\tau(x)\)

\(B\)

Coefficient on labor income term \(x\) in \(\tau(x)\)

\(C\)

Coefficient on squared capital income term \(y^2\) in \(\tau(y)\)

\(D\)

Coefficient on capital income term y in \(\tau(y)\)

\(max_{x}\)

Maximum tax rate on labor income \(x\) given \(y\) = 0

\(min_{x}\)

Minimum tax rate on labor income \(x\) given \(y\) = 0

\(max_{y}\)

Maximum tax rate on capital income \(y\) given \(x\) = 0

\(min_{y}\)

Minimum tax rate on capital income \(y\) given \(x\) = 0

\(shift_{x}\)

shifter  \(> \|min_{x}\|\) ensures that \(\tau(x,y)\) + \(shift_{x} \geq 0\) despite potentially negative values for \(\tau(x)\)

\(shift_{y}\)

shifter  \(> \|min_{y}\|\) ensures that \(\tau(x,y)\) + \(shift_{y} \geq 0\) despite potentially negative values for \(\tau(y)\)

\(shift\)

shifter (can be negative) allows for support of \(\tau(x,y)\) to include negative tax rates

\(\phi\)

Cobb-Douglas share parameter between 0 and 1

../../_images/Age42_2017_vsPred.png

Fig. 15 Estimated tax rate functions of ETR, MTRx, MTRy, and histogram as functions of labor income and capital income from microsimulation model: \(t=2017\) and \(s=42\) under current law. Note: Axes in the histogram in the lower-right panel have been switched relative to the other three figures in order to see the distribution.

Table 9 Estimated baseline current law tax rate function for \(\tau_{s,t}(x,y)\) parameters for \(s=42\), \(t=2017\).

Parameter

\(ETR\)

\(MTRx\)

\(MTRy\)

\(A\)

6.28E-12

3.43E-23

4.32E-11

\(B\)

4.36E-05

4.50E-04

5.52E-05

\(C\)

1.04E-23

9.81E-12

5.62E-12

\(D\)

7.77E-09

5.30E-08

3.09E-06

\(max_{x}\)

0.80

0.71

0.44

\(min_{x}\)

-0.14

-0.17

0.00E+00

\(max_{y}\)

0.80

0.80

0.13

\(min_{y}\)

-0.15

-0.42

0.00E+00

\(shift_{x}\)

0.15

0.18

4.45E-03

\(shift_{y}\)

0.16

0.43

1.34E-03

\(shift\)

-0.15

-0.42

0.00E+00

\(\phi\)

0.84

0.96

0.86

Obs. (\(N\))

3,105

3,105

1,990

SSE

9,122.68

15,041.35

7,756.54

Let \(\boldsymbol{\theta}_{s,t}=(A,B,C,D,max_x,min_x,max_y,min_y,shift_x,shift_y,shift,\phi)\) be the full vector of 12 parameters of the tax function for a particular type of tax rate, age of filers, and year. We first directly specify \(min_x\) as the minimum tax rate and \(max_x\) as the maximum tax rate in the data for age-\(s\) and period-\(t\) individuals for capital income close to 0 (\(\$0<y<\$3,000\)), and \(min_y\) as the minimum tax rate and \(max_y\) as the maximum tax rate for labor income close to 0 (\(\$0<x<\$3,000\)). We then set \(shift_x = \min(0,|min_x|)+\epsilon\) and \(shift_y = \min(0,|min_y|)+\epsilon\) so that the respective arguments in the brackets of (118) are strictly positive. Then let \(shift\) be be the minimum tax rate in the corresponding data minus \(\epsilon\). Let \(\bar{\boldsymbol{\theta}}_{s,t}=\{min_x,max_x,min_y,max_y,shift_x,shift_y, shift\}\) be the set of parameters we take directly from the data in this way.

We then estimate five remaining parameters \(\tilde{\boldsymbol{\theta}}_{s,t}=(A,B,C,D,shift,\phi)\) using the following nonlinear weighted least squares criterion,

(119)\[\begin{split} \boldsymbol{\hat{\theta}}_{s,t} = \tilde{\boldsymbol{\theta}}_{s,t}:\quad &\min_{\tilde{\boldsymbol{\theta}}_{s,t}}\sum_{i=1}^{N} \Bigl[\tau_{i}-\tau_{s,t}\bigl(x_i,y_i|\tilde{\boldsymbol{\theta}}_{s,t},\bar{\boldsymbol{\theta}}_{s,t}\bigr)\Bigr]^{2} w_i, \\ &\qquad\text{subject to}\quad A, B, C, D > 0 \quad\text{and}\quad \phi\in[0,1]\end{split}\]

where \(\tau_{i}\) is the tax rate for observation \(i\) from the microsimulation output, \(\tau_{s,t}(x_i,y_i|\tilde{\boldsymbol{\theta}}_{s,t},\bar{\boldsymbol{\theta}}_{s,t})\) is the predicted tax rate for filing-unit \(i\) with \(x_{i}\) labor income and \(y_{i}\) capital income given parameters \(\boldsymbol{\theta}_{s,t}\), and \(w_{i}\) is the CPS sampling weight of this observation. The number \(N\) is the total number of observations from the microsimulation output for age \(s\) and year \(t\). Figure Fig. 15 shows the typical fit of an estimated tax function \(\tau_{s,t}\bigl(x,y|\hat{\boldsymbol{\theta}}_{s,t}\bigr)\) to the data. The data in Figure Fig. 15 are the same age \(s=42\) and year \(t=2017\) as the data Figure Fig. 14.

The underlying data can limit the number of tax functions that can be estimated. For example, we use the age of the primary filer from the PUF-CPS match to be equivalent to the age of the DGE model household. The DGE model we use allows for individuals up to age 100, however the data contain few primary filers with age above age 80. Because we cannot reliably estimate tax functions for \(s>80\), we apply the tax function estimates for 80 year-olds to those with model ages 81 to 100. In the case certain ages below age 80 have too few observations to enable precise estimation of the model parameters, we use a linear interpolation method to find the values for those ages \(21\leq s <80\) that cannot be precisely estimated. 2

In OG-USA, we estimate the 12-parameter functional form (118) using weighted nonlinear least squares to fit an effective tax rate function \((\tau^{etr}_{s,t})\), a marginal tax rate of labor income function \((\tau^{mtrx}_{s,t})\), and a marginal tax rate of capital income function \((\tau^{mtry}_{s,t})\) for each age \(E+1\leq s\leq E+S\) and each of the first 10 years from the current period. 3 That means we have to perform 2,400 estimations of 12 parameters each. Figure Fig. 15 shows the predicted surfaces for \(\tau^{etr}_{s=42,t=2017}\), \(\tau^{mtrx}_{s=42,t=2017}\), and \(\tau^{mtry}_{s=42,t=2017}\) along with the underlying scatter plot data from which those functions were estimated. Table 9 shows the estimated values of those functional forms.

The full set of estimated values are calculated in the OG-USA/ogusa/txfunc.py module in the OG-USA repository. And the estimated values are stored in the TxFuncEst_baseline.pkl file.

Alternative Functional Forms

In addition to the default option using tax functions of the form developed by [DEP19], OG-USA also allows users to specify alternative tax functions. Three alternatives are offered:

  1. Functions as in [DEP19], but where \(\tau^{etr}_{s,t}\), \(\tau^{mtrx}_{s,t}\), and \(\tau^{mtry}_{s,t}\) are functions of total income (i.e., \(x+y\)) and not labor and capital income separately. Users can select this option by setting the parameter tax_func_type="DEP_totalinc".

  2. Functions of the Gouveia and Strauss form [GS94b]:

    \[ \tau = \phi_{0}(1 - (x+y)^{(\phi_{1}-1)}((x+y)^{-\phi1} + \phi_{2})^{(-1 - \phi_{1})/\phi_{1}})\]

    Users can select this option by setting the parameter tax_func_type="GS". The three parameters of this function (\(\phi_{0}, \phi_{1}, \phi_{2}\)) are estimated using the weighted sum of squares estimated described in Equation (119).

  3. Linear tax functions (i.e., \(\tau =\) a constant). Users can select this option by setting the parameter tax_func_type="linear". The constant rate is found by taking the weighted average of the appropriate tax rate (effective tax rate, marginal tax rate on labor income, marginal tax rate on labor income) for each age and year, where the values are weighted by sampling weights and income.

Among all of these tax functional forms, users can set the age_specific parameter to False if they wish to have one function for all ages \(s\). In addition, for the functions based on [DEP19] (tax_func_type="DEP" or tax_func_type="DEP_totinc"), one can set analytical_mtrs=True if they wish to have the \(\tau^{mtrx}_{s,t}\) and \(\tau^{mtry}_{s,t}\) derived from the \(\tau^{etr}_{s,t}\) functions. This provides theoretical consistency, but reduced fit of the functions (see [DEP19] for more details).

Factor Transforming Income Units

The tax functions \(\tau^{etr}_{s,t}\), \(\tau^{mtrx}_{s,t}\), and \(\tau^{mtry}_{s,t}\) are estimated based on current U.S. tax filer reported incomes in dollars. However, the consumption units of the OG-USA model are not in the same units as the real-world U.S. incomes data. For this reason, we have to transform the income by a \(factor\) so that it is in the same units as the income data on which the tax functions were estimated.

The tax rate functions are each functions of capital income and labor income \(\tau(x,y)\). In order to make the tax functions return accurate tax rates associated with the correct levels of income, we multiply the model income \(x^m\) and \(y^m\) by a \(factor\) so that they are in the same units as the real-world U.S. income data \(\tau(factor\times x^m, factor\times y^m)\). We define the \(factor\) such that average steady-state household total income in the model times the \(factor\) equals the U.S. data average total income.

(120)\[ factor\Biggl[\sum_{s=E+1}^{E+S}\sum_{j=1}^J\lambda_j\bar{\omega}_s\left(\bar{w}e_{j,s}\bar{n}_{j,s} + \bar{r}_{hh}\bar{b}_{j,s}\right)\Biggr] = \text{Avg. household income in data}\]

We do not know the steady-state wage, interest rate, household labor supply, and savings ex ante. So the income \(factor\) is an endogenous variable in the steady-state equilibrium computational solution. We hold the factor constant throughout the nonsteady-state equilibrium solution.

Household Transfers

Total transfers to households by the government in a given period \(t\) is \(TR_t\). The percent of those transfers given to all households of age \(s\) and lifetime income group \(j\) is \(\eta_{j,s}\) such that \(\sum_{s=E+1}^{E+S}\sum_{j=1}^J\eta_{j,s,t}=1\). OG-USA currently has the transfer distribution function set to distribute transfers uniformly among the population.

(121)\[ \eta_{j,s,t} = \frac{\lambda_j\omega_{s,t}}{\tilde{N}_t} \quad\forall j,t \quad\text{and}\quad E+1\leq s\leq E+S\]

However, this distribution function \(\eta_{j,s,t}\) could also be modified to more accurately reflect the way transfers are distributed in the United States.


1

Tax-Calculator is available through an open source repository https://github.com/PSLmodels/Tax-Calculator as well as through a web application Tax-Brain, hosted by Compute.Studio. Documentation for Tax-Calculator is available at https://pslmodels.github.io/Tax-Calculator/.

2

We use two criterion to determine whether the function should be interpolated. First, we require a minimum number of observations of filers of that age and in that tax year. Second, we require that that sum of squared errors meet a predefined threshold.

3

We assume that whatever parameters the tax functions have in year 10 persist forever.