Parameter Table Functions

Parameter Table Functions

parameter_tables.py modules

ogcore.parameter_tables

ogcore.parameter_tables.param_table(p, table_format='tex', path=None)[source]

This function creates a table of model parameters for publication.

Parameters
  • p (OG-Core Specifications class) – baseline parameters object)

  • table_format (string) – format to save/return table as

  • path (string) – path to save table to

Returns

table of tax rates

Return type

table (string or DataFrame)

ogcore.parameter_tables.tax_rate_table(base_TxFuncEst, base_params, reform_TxFuncEst=None, reform_params=None, rate_type='ETR', start_year=2021, num_years=10, table_format='tex', path=None)[source]

Table of average tax rates over several years.

Parameters
  • base_TxFuncEst (dictionary) – Baseline tax function parameter estimates

  • base_params (OG-Core Specifications class) – baseline parameters object

  • reform_TxFuncEst (dictionary) – Reform tax function parameter estimates

  • reform_params (OG-Core Specifications class) – reform parameters object

  • rate_type (string) – Tax rate to include in table

  • start_year (integer) – year to start table

  • num_years (integer) – number of years to include in table

  • table_format (string) – format to save/return table as

  • path (string) – path to save table to

Returns

table of tax rates

Return type

table_str (string or DataFrame)