diff --git a/ccc/calcfunctions.py b/ccc/calcfunctions.py index 5179b68d..a79db245 100644 --- a/ccc/calcfunctions.py +++ b/ccc/calcfunctions.py @@ -1,9 +1,6 @@ import numpy as np import pandas as pd -from ccc.constants import TAX_METHODS, RE_ASSETS, RE_INDUSTRIES -from ccc.utils import str_modified - -ENFORCE_CHECKS = True +from ccc.constants import TAX_METHODS def update_depr_methods(df, p, dp): @@ -280,9 +277,6 @@ def eq_coc( for index, element in enumerate(ind_code) if element in re_credit["By industry"].keys() ] - print("Keys = ", re_credit["By industry"].keys()) - print("Ind idx = ", idx) - print("Dict = ", re_credit["By industry"], re_credit) ind_code_idx = [ind_code[i] for i in idx] re_credit_rate_ind[idx] = [ re_credit["By industry"][ic] for ic in ind_code_idx @@ -300,8 +294,6 @@ def eq_coc( ] # take the larger of the two R&E credit rates inv_tax_credit += np.maximum(re_credit_rate_asset, re_credit_rate_ind) - print("RE_credit object =", re_credit) - print("inv_tax_credit object =", inv_tax_credit) rho = ( ((r - pi + delta) / (1 - u)) * (1 - inv_tax_credit * nu - u_d * z * (1 - psi * inv_tax_credit)) diff --git a/docs/book/content/CCC_guide.md b/docs/book/content/CCC_guide.md index cd673f46..d18b25bb 100644 --- a/docs/book/content/CCC_guide.md +++ b/docs/book/content/CCC_guide.md @@ -376,21 +376,21 @@ r_{m,j}-\pi = f_{m,j}\left[i(1-u_{j})-\pi\right] + (1-f_{m,j})E_{j}, (sec:step3)= ### Measuring Debt by Industry and Tax Treatment -We measure total debt from the [Financial Accounts of the United States](http://www.federalreserve.gov/apps/fof/FOFTables.aspx). In particular, we use the following tables to capture debt, which we measure separately for corporate financial and nonfinancial businesss, noncorporate business, and household mortgage debt: +We measure total debt from the [Financial Accounts of the United States](http://www.federalreserve.gov/apps/fof/FOFTables.aspx). In particular, we use the following tables to capture debt, which we measure separately for corporate financial and non-financial businesss, non-corporate business, and household mortgage debt: * B.100: Value of owner-occupied houses; -* L.103: Liabilities of nonfinancial corporations, by type of instrument; -* L.104: Liabilities of nonfinancial noncorporate business, by type of instrument; +* L.103: Liabilities of non-financial corporations, by type of instrument; +* L.104: Liabilities of non-financial non-corporate business, by type of instrument; * L.208: Total liabilities (financial corporations); -* L.223: Corporate equity outstanding, by sector (nonfinancial, financial); +* L.223: Corporate equity outstanding, by sector (non-financial, financial); * L.218: Home mortgages (households); and -* L.229: Proprietors equity in noncorporate business +* L.229: Proprietors equity in non-corporate business -To allocate debt across tax treatment, we use SOI Tax Stats Data. The Financial Account Data combine both S corporations and C corporations in the "corporation" definition. We thus use SOI data to identify the portion of debt and equity attributable to S corporations. Debt is assigned in proportion to interest deductions. Equity is assigned in proportion to the sum of capital stock, additional paid-in capital, and retained earnings minus treasury stock. The resulting S corporation amounts were subtracted from corporate totals (leaving the amount for C corporations) and added to noncorporate businesses. We do the same to allocate the noncorporate across sole proprietorships and partnerships. We further allocate the amount of debt and equity attributable to corporate partnerships using a similar method. +To allocate debt across tax treatment, we use SOI Tax Stats Data. The Financial Account Data combine both S corporations and C corporations in the "corporation" definition. We thus use SOI data to identify the portion of debt and equity attributable to S corporations. Debt is assigned in proportion to interest deductions. Equity is assigned in proportion to the sum of capital stock, additional paid-in capital, and retained earnings minus treasury stock. The resulting S corporation amounts were subtracted from corporate totals (leaving the amount for C corporations) and added to non-corporate businesses. We do the same to allocate the non-corporate across sole proprietorships and partnerships. We further allocate the amount of debt and equity attributable to corporate partnerships using a similar method. Specifically, we make the following calculations: -Let $debt_{corp}$ be the total amount of nonfinancial corporate debt reported in the Financial Accounts of the Untied States Table L.103, variable FL104122005. We then allocate this total across S-corporations and C-corporations and industry $m$ as follows: +Let $debt_{corp}$ be the total amount of non-financial corporate debt reported in the Financial Accounts of the Untied States Table L.103, variable FL104122005. We then allocate this total across S-corporations and C-corporations and industry $m$ as follows: ```{math} :label: eqn:debt_ccorp @@ -412,7 +412,7 @@ Similarly, for equity, let COMP\_RTND\_ERNGS\_UNAPPR - CST\_TRSRY\_STCK ``` -and let $equity_{corp}$ be total nonfinancial corporate equity from the Financial Accounts of the United States Table L.223, series LM103164103. For C-corps, we have: +and let $equity_{corp}$ be total non-financial corporate equity from the Financial Accounts of the United States Table L.223, series LM103164103. For C-corps, we have: ```{math} :label: eqn:equity_ccorp @@ -430,7 +430,7 @@ For financial businesses, we use Table L.208, series FL794122005 for corporate d For the corporate financial services industry, we use Table L.208 series FL794122005 for debt and Table L.223 series LM793164105 for equity. -Noncorporate, nonfinancial debt totals come from Table L.104, series FL114123005. For non-corporate debt, we can divide between partnerships and sole props by industry using +non-corporate, non-financial debt totals come from Table L.104, series FL114123005. For non-corporate debt, we can divide between partnerships and sole props by industry using ```{math} :label: eqn:debt_pt_minor @@ -439,7 +439,7 @@ debt_{m,j} = debt_{noncorp}\frac{INTRST\_PD_{m,j}}{\sum_{m=1}^{M}INTRST\_PD_{m,j -Noncorporate equity total comes from Table L.229, series FL152090205. We can see partners' capital accounts for partnerships, but for sole props we don't have a good measure of the equity of proprietors. We thus make the assumption that the equity of sole proprietors is distributed across industries in the same way that the equity of partnerships is. +non-corporate equity total comes from Table L.229, series FL152090205. We can see partners' capital accounts for partnerships, but for sole props we don't have a good measure of the equity of proprietors. We thus make the assumption that the equity of sole proprietors is distributed across industries in the same way that the equity of partnerships is. ```{math} :label: eqn:equity_pt_minor @@ -448,7 +448,7 @@ equity_{m,p+sp} = equity_{noncorp}\frac{PCA_{m,p}}{sum_{m=1}^{M}PCA_{m,p}}, Where $PCA_{p,m}$ are the "partnership capital accounts" for partnerships in industry $m$. $equity_{m,p+sp}$ denotes the total amount of equity for partnerships and sole proprietorships in industry $m$. We then find total non-corporate equity for industry $m$ as $equity_{NC,m} = equity_{p+sp,m} + equity_{s,m}$. -We then calculate the fraction of investment financed with debt by industry $m$ and entity type $j$ as: $f_{m,j} = \frac{debt_{m,j}}{equity_{m,j}+debt_{m,j}}$. Due to the data limitations stemming from data on sole proprietors, we calculate the ratio for partnerships and sole proprietorships as being: $f_{m,p} = f_{m,sp} = \frac{debt_{m,p}+debt_{m,sp}}{equity_{m,p+sp}}$ The exception here are financial, noncorporate businesses (see issue above with debt for these businesses). Because of this limitation, we let $f_{finance,j}=f_{finance,s}, \forall j\in\{p,sp\}$ (i.e., we take the financial policy of S-corp financial businesses and apply it to all non-corporate financial businesses). +We then calculate the fraction of investment financed with debt by industry $m$ and entity type $j$ as: $f_{m,j} = \frac{debt_{m,j}}{equity_{m,j}+debt_{m,j}}$. Due to the data limitations stemming from data on sole proprietors, we calculate the ratio for partnerships and sole proprietorships as being: $f_{m,p} = f_{m,sp} = \frac{debt_{m,p}+debt_{m,sp}}{equity_{m,p+sp}}$ The exception here are financial, non-corporate businesses (see issue above with debt for these businesses). Because of this limitation, we let $f_{finance,j}=f_{finance,s}, \forall j\in\{p,sp\}$ (i.e., we take the financial policy of S-corp financial businesses and apply it to all non-corporate financial businesses). ## NPV of Depreciation Deductions @@ -590,7 +590,7 @@ One may alter the macroeconomic assumptions regarding rates of interest and infl *Business Taxation*: Users to adjust the statutory marginal tax rates at the entity level, tax depreciation schedules, allowances for deductibility of interest or equity, and property tax rates. -*Individual Income Taxation*: `Cost of Capital Calculator` has the ability to allow for changes in individual income tax rates on pass-through business income, interest, dividends, and capital gains. In addition, policies affecting the deductibility of property taxes or mortgage interest affect the after-tax costs of owner-occupied housing. To find the effect of such policy changes on the marginal investor, `Cost of Capital Calculator `interacts with OSPC's `Tax-Calculator`. Once the reform policies are specified, the `Tax-Calculator` computes the marginal tax rates on non-corporate business income, dividend income, interest income, capital gains income, and tax-deferred retirement account income. The rates we apply to the "marginal investor" in the model are then computed as: +*Individual Income Taxation*: `Cost of Capital Calculator` has the ability to allow for changes in individual income tax rates on pass-through business income, interest, dividends, and capital gains. In addition, policies affecting the deductibility of property taxes or mortgage interest affect the after-tax costs of owner-occupied housing. To find the effect of such policy changes on the marginal investor, `Cost of Capital Calculator `interacts with `Tax-Calculator`. Once the reform policies are specified, the `Tax-Calculator` computes the marginal tax rates on non-corporate business income, dividend income, interest income, capital gains income, and tax-deferred retirement account income. The rates we apply to the "marginal investor" in the model are then computed as: * $\tau_{pt}$ = weighted average marginal tax rate on ordinary, non-corporate business income (weighted by amount of non-corporate business income) * $\tau_{div}$ = weighted average marginal tax rate on dividend income (weighted by amount of dividend income received)