| name | fiscal-policy-analysis |
| description | 财政政策分析,实现财政乘数估计、简化债务可持续性模型与财政空间评估。适用于财政政策分析的。债务可持续性模型未考虑隐性债务与表外负债,不适用于政策建议,不构成投资建议。 |
| version | 1.0.0 |
| author | wangyi |
fiscal-policy-analysis
财政政策分析工具,实现财政乘数估计、债务可持续性分析和财政空间评估,仅使用 Python 标准库。
📌 说明:本工具基于简化模型实现,仅使用 Python 标准库。结果仅供学习参考,不构成投资建议。
脚本API
fiscal_multiplier(mpc=0.6, tax_rate=0.25, import_propensity=0.15, model='open_economy')
财政乘数计算。
fiscal_impact(government_spending_change, mpc=0.6, tax_rate=0.25, import_propensity=0.15)
财政政策对GDP的影响估算。
必填: government_spending_change
debt_sustainability(debt_to_gdp, real_interest_rate, real_growth_rate, primary_deficit, forecast_horizon=10, debt_threshold=0.9)
债务可持续性分析。
必填: debt_to_gdp, real_interest_rate, real_growth_rate, primary_deficit
fiscal_space(current_debt, debt_ceiling, real_interest_rate, real_growth_rate, required_primary_balance=None)
财政空间评估。
必填: current_debt, debt_ceiling, real_interest_rate, real_growth_rate
analyze_fiscal_policy(method='multiplier')
统一财政政策分析接口。
调用示例
python scripts/main.py \
--method <method> \
--current-debt <current_debt> \
--debt-ceiling <debt_ceiling> \
--debt-threshold <debt_threshold> \
--debt-to-gdp <debt_to_gdp> \
--forecast-horizon <forecast_horizon> \
--government-spending-change <government_spending_change> \
--import-propensity <import_propensity> \
--model <model> \
--mpc <mpc> \
--primary-deficit <primary_deficit> \
--real-growth-rate <real_growth_rate> \
--real-interest-rate <real_interest_rate> \
--required-primary-balance <required_primary_balance> \
--tax-rate <tax_rate>