Flexible Damage Functions

Author

James Rising, Sebastian Cadavid Sanchez, Climate Impact Lab

Published

September 14, 2026

0.1 Agriculture: Sorghum Country Collapsed

Flexible damage function parameters at the Country level.

Change in sorghum yields (log change in yields) under full adaptation

Outcome units: log_yield_change. Log change in sorghum yield (kg/Ha, log scale): country-level rows extracted from the 1% winsorization aggregated.nc4 file, mean-collapsed over the MC ensemble (batch x GCM).

\[D_{it} = (\alpha_i T_t + \beta_i T_t^2) \cdot Y_{it}^{\gamma}\]

where \(\gamma\) is the income elasticity (fitted globally), \(\alpha_i\) is the linear coefficient, and \(\beta_i\) is the quadratic coefficient.


1 Global Estimation

1.1 Income Elasticity Estimation

The income elasticity \(\gamma\) is estimated using a fixed-effects regression:

\[y_{it} = \gamma \cdot \log(Y_{it}) + \mu_{g(i,T)} + \nu_t + \varepsilon_{it}\]

where \(\mu_{g(i,T)}\) are region-by-temperature-bin fixed effects and \(\nu_t\) are year fixed effects.

Table 1: Income Elasticity (Gamma) Estimation Results
Statistic Value
Income elasticity (\(\gamma\)) 0.0030
Standard error 1.27e-03
95% CI [0.0005, 0.0055]
R-squared 0.9408
Observations 143,058
Regions 141
Gamma quantiles 19

2 Parameter Distributions

2.1 8-Panel Summary

Row 1: gamma, alpha, beta, rsqr1. Row 2: rho, zeta, eta, rsqr2.

Using median gamma: 0.002973, 141 rows (of 2,679 total)
Figure 1: Distribution of Regional Parameters

2.2 Projection Equation and Parameter Definitions

The estimated parameters are used to project damages via Monte Carlo sampling:

\[D_{it}^k = (\hat{\alpha}_{ik} T_t + \hat{\beta}_{ik} T_t^2) Y_{it}^{\hat{\gamma}_k} + \hat{\theta}_{ik} T_t Y_{it}^{\hat{\gamma}_k} + \hat{\phi}_{it}^k\]

where \(k\) indexes the Monte Carlo draw. The parameters in each row of the output CSV control distinct components of this equation:

  • gamma: income elasticity \(\hat{\gamma}_k\), one of 19 quantile values drawn from \(N(\hat{\gamma}, SE(\hat{\gamma}))\)
  • alpha, beta: linear and quadratic temperature coefficients; \(\hat{\alpha}_{ik}\) and \(\hat{\beta}_{ik}\) are drawn from the joint normal defined by the VCV below
  • sigma11, sigma12, sigma22: variance-covariance matrix of \((\alpha, \beta)\), used for joint uncertainty sampling
  • rho: correlation between regional and global polynomial residuals \(\rho_i\), used to maintain spatial covariance across regions in Monte Carlo draws
  • zeta: temperature-dependent error scale \(\zeta_{ik}\); the run-specific error term \(\hat{\theta}_{ik}\) is drawn from \(N(0, \zeta_{ik})\)
  • eta: residual noise standard deviation \(\eta_{ik}\); the annual noise \(\hat{\phi}_{it}^k\) is drawn from \(N(0, \eta_{ik})\)
  • rsqr1, rsqr2: polynomial fit quality and error model fit, respectively

2.3 Summary Statistics

Table 2: Regional Parameter Summary
Parameter Mean Median Std Min Max N
alpha 0.01437 -0.0423 0.1685 -0.2996 0.4671 141
beta -0.035 -0.02149 0.03712 -0.1236 0 141
rho 0.113 0.1028 0.1302 -0.2541 0.5866 140
zeta 0.02174 0.01983 0.01036 0 0.06443 141
eta 0.03575 0.03241 0.01891 0 0.1124 141
rsqr1 0.8406 0.9008 0.1825 0 0.9855 141
rsqr2 0.5852 0.5803 0.07228 0 0.7309 141

3 Spaghetti Curves

Regional damage function curves showing D(T) = αT + βT² for sampled regions.

Figure 2: Regional Damage Functions

4 Zero Crossings

The zero crossing (extremum) of the parabola occurs at \(T^* = -\alpha / (2\beta)\).

Table 3: Zero Crossing Statistics
Category Count Percentage
β = 0 (no crossing) 23 16.3%
T > 20°C (beyond graph) 0 0.0%
T < 0°C (negative crossing) 64 45.4%
Valid crossings (0-20°C) 54 38.3%
Figure 3: Distribution of Zero Crossing Temperatures

5 Slope Analysis

Maximum slope between 0 and 10°C: \(\frac{dM}{dT} = \alpha + 2\beta T\)

The maximum occurs at either T=0 or T=10 (endpoints of interval).

Figure 4: Distribution of Maximum Slopes (0-10°C)

Convexity analysis omitted (beta constraint active).


6 R-squared Analysis

6.1 Polynomial Fit Quality (rsqr1)

Figure 5: Regional Fit Quality (R-squared)

6.2 Error Model R-squared (rsqr2) Quantiles

Table 4: rsqr2 Quantiles
0% (Min) 25% 50% (Median) 75% 100% (Max)
0.0000 0.5556 0.5803 0.6336 0.7309

7 Modelled Variance

Modelled variance statistic: \(1 - \frac{\sum_i \eta_i^2}{\sum_i D_i^2}\)

Table 5: Modelled Variance Statistics
Statistic Value
Modelled variance 0.9910
Sum(η²) 0.2303
Sum(D²) at T=3.0°C 25.7243
N regions 141

8 Best- and Worst-Fitting Regions

The 3 worst- and 3 best-fitting regions by R-squared, with raw simulation data overlaid on the fitted polynomial curve. Red rows = worst fits, green rows = best fits.

Table 6: Best- and worst-fitting regions
Top 3 best fit (R²)   Top 3 worst fit (R²)
Region α β η R²
ISR -0.00254 -0.0599 0.0188 0.986
BRA -0.103 -0.0306 0.0217 0.979
PRT 0.126 -0.0906 0.0234 0.978
BGD 0.0681 -0.0128 0.0921 0.0186
NPL 0.137 -0.0307 0.112 0.0368
BTN 0.171 -0.0351 0.111 0.0659
Figure 6: Fitted polynomial with raw data for worst-fitting regions

9 Regional Parameter Maps

Maps of key parameters at the country level. Red = negative (damage increases with T), Blue = positive.

9.1 Alpha (Linear Coefficient)

Alpha (\(\alpha\)) represents the linear sensitivity to temperature. Regions with negative alpha experience damage that increases with the first degree of warming.

Figure 7: α (linear coefficient)

9.2 Beta (Quadratic Coefficient)

Beta (\(\beta\)) represents the curvature of the damage function.

The concavity (\(\beta \leq 0\)) constraint is enforced for this sector, meaning optimal temperature exists, damages accelerate beyond it.

Figure 8: β (quadratic coefficient)

9.3 R-squared (Fit Quality)

\(R^2\) measures the polynomial fit quality. Higher values indicate that the quadratic form captures more of the variance in the data.

Figure 9: R² (stage 1 fit quality)

10 F2: Flex vs Raw Comparison

Comparison of flexible damage function predictions against raw simulation means.

For each scenario (RCP × SSP × Model), we compute at the final year:

  • Flex predicted: \((\alpha \cdot T + \beta \cdot T^2) \cdot Y^\gamma\)
  • Raw actual: The outcome variable (y) from the source data

Year 2098: 3,036 rows

Correlation: 0.7767 | RMSE: 0.195098 | Sign agreement: 90.1%

Top 5 best predicted   Top 5 worst predicted
Year 2098 · Tmean across these regions: 1.94°C
Region Raw Flex Residual
FJI 0 0 0
MDG -0.321 -0.322 -7.31e-4
ESP -0.139 -0.138 0.00176
CA- -0.314 -0.318 -0.0041
MAC -0.614 -0.609 0.00504
BGD -0.655 0.0866 0.741
BTN -0.287 0.206 0.494
NPL -0.325 0.154 0.479
CAN -0.0863 0.361 0.448
CHN -0.341 0.0365 0.377

Correlation: 0.7899 | RMSE: 0.219704 | Sign agreement: 88.7%

Top 5 best predicted   Top 5 worst predicted
Year 2098 · Tmean across these regions: 1.94°C
Region Raw Flex Residual
FJI 0 0 0
GNB -0.399 -0.399 3.64e-4
KO- -0.0672 -0.0663 9.33e-4
SOM -0.29 -0.291 -0.00158
VEN -0.129 -0.126 0.00293
BGD -0.626 0.0864 0.712
BTN -0.321 0.206 0.527
CAN -0.0906 0.361 0.452
BFA -0.66 -0.241 0.419
NPL -0.241 0.154 0.396

Correlation: 0.7889 | RMSE: 0.240579 | Sign agreement: 86.5%

Top 5 best predicted   Top 5 worst predicted
Year 2098 · Tmean across these regions: 1.94°C
Region Raw Flex Residual
FJI 0 0 0
BDI -0.283 -0.282 7.83e-4
GNB -0.392 -0.399 -0.00608
ARM -0.123 -0.117 0.0064
MKD -0.144 -0.152 -0.00825
BGD -0.563 0.0863 0.649
ERI -0.764 -0.22 0.544
SDN -0.663 -0.173 0.489
IRN -0.443 0.0409 0.484
BTN -0.263 0.206 0.469

Correlation: 0.8017 | RMSE: 0.280873 | Sign agreement: 87.2%

Top 5 best predicted   Top 5 worst predicted
Year 2098 · Tmean across these regions: 1.94°C
Region Raw Flex Residual
FJI 0 0 0
ESP -0.139 -0.138 0.00129
BIH -0.073 -0.0711 0.0019
SRB -0.231 -0.229 0.00251
MAC -0.603 -0.608 -0.0053
SDN -0.753 -0.173 0.58
BOL -0.873 -0.297 0.577
IRN -0.492 0.0408 0.533
MRT -0.686 -0.177 0.509
BGD -0.422 0.0859 0.508

Correlation: 0.8279 | RMSE: 0.237813 | Sign agreement: 89.4%

Top 5 best predicted   Top 5 worst predicted
Year 2098 · Tmean across these regions: 1.94°C
Region Raw Flex Residual
FJI 0 0 0
KO- -0.0659 -0.0663 -4.20e-4
CA- -0.323 -0.318 0.00463
BGR -0.136 -0.142 -0.00621
GRC -0.182 -0.175 0.0073
BGD -0.518 0.0862 0.604
SDN -0.742 -0.173 0.569
ERI -0.776 -0.219 0.556
BTN -0.274 0.206 0.48
MLI -0.739 -0.271 0.468

Correlation: 0.8042 | RMSE: 0.255900 | Sign agreement: 87.9%

Top 5 best predicted   Top 5 worst predicted
Year 2098 · Tmean across these regions: 1.94°C
Region Raw Flex Residual
FJI 0 0 0
ESP -0.131 -0.138 -0.00651
TUR -0.287 -0.295 -0.00846
CA- -0.304 -0.318 -0.0132
SRB -0.243 -0.229 0.014
BGD -0.53 0.0861 0.617
SDN -0.714 -0.173 0.541
IRN -0.49 0.0408 0.531
BOL -0.789 -0.297 0.492
SYR -0.544 -0.0797 0.465

Correlation: 0.5204 | RMSE: 0.437284 | Sign agreement: 95.0%

Top 5 best predicted   Top 5 worst predicted
Year 2098 · Tmean across these regions: 4.19°C
Region Raw Flex Residual
FJI 0 0 0
ARG -1.08 -1.08 -0.00319
DEU -0.0369 -0.0423 -0.00535
NIC -0.768 -0.774 -0.00689
CUB -0.706 -0.691 0.015
BGD -1.02 0.0623 1.08
MKD -0.46 -1.36 -0.895
ESP -0.388 -1.23 -0.839
SDN -1.21 -0.376 0.835
KO- -0.401 -1.23 -0.833

Correlation: 0.4768 | RMSE: 0.484028 | Sign agreement: 94.3%

Top 5 best predicted   Top 5 worst predicted
Year 2098 · Tmean across these regions: 4.19°C
Region Raw Flex Residual
FJI 0 0 0
ZWE -0.847 -0.834 0.0126
ARG -1.07 -1.08 -0.0131
DEU -0.0639 -0.0422 0.0217
BEL 0.303 0.327 0.0249
SDN -1.45 -0.375 1.07
BGD -0.965 0.0621 1.03
BFA -1.5 -0.521 0.983
IRN -0.916 0.0664 0.983
BOL -1.57 -0.643 0.929

Correlation: 0.4851 | RMSE: 0.488681 | Sign agreement: 94.3%

Top 5 best predicted   Top 5 worst predicted
Year 2098 · Tmean across these regions: 4.19°C
Region Raw Flex Residual
FJI 0 0 0
PNG -0.783 -0.789 -0.00621
PRK -0.552 -0.571 -0.0184
KOR -0.64 -0.621 0.0186
TWN -0.372 -0.398 -0.0268
ERI -1.73 -0.475 1.26
SDN -1.58 -0.374 1.2
IRN -1.02 0.0664 1.09
BGD -0.875 0.0621 0.938
BFA -1.45 -0.521 0.933

Correlation: 0.4641 | RMSE: 0.567771 | Sign agreement: 93.6%

Top 5 best predicted   Top 5 worst predicted
Year 2098 · Tmean across these regions: 4.19°C
Region Raw Flex Residual
FJI 0 0 0
MEX -0.572 -0.571 0.00134
TKM -0.223 -0.229 -0.0063
CUB -0.709 -0.69 0.0188
JOR -0.54 -0.563 -0.0225
SDN -1.67 -0.373 1.3
IRN -1.13 0.0663 1.2
ERI -1.65 -0.475 1.18
BOL -1.76 -0.641 1.12
SYR -1.26 -0.243 1.02

Correlation: 0.4808 | RMSE: 0.516643 | Sign agreement: 94.3%

Top 5 best predicted   Top 5 worst predicted
Year 2098 · Tmean across these regions: 4.19°C
Region Raw Flex Residual
FJI 0 0 0
KOR -0.617 -0.622 -0.00522
CUB -0.7 -0.691 0.00873
ARG -1.07 -1.08 -0.0172
GTM -0.87 -0.852 0.0182
SDN -1.66 -0.373 1.29
ERI -1.64 -0.473 1.17
BFA -1.51 -0.521 0.985
MLI -1.53 -0.585 0.949
PAK -1.18 -0.248 0.935

Correlation: 0.4797 | RMSE: 0.543380 | Sign agreement: 94.3%

Top 5 best predicted   Top 5 worst predicted
Year 2098 · Tmean across these regions: 4.19°C
Region Raw Flex Residual
FJI 0 0 0
ARG -1.08 -1.08 -0.00393
HTI -0.906 -0.924 -0.0174
MAR -0.508 -0.537 -0.0286
BEL 0.294 0.327 0.0339
SDN -1.7 -0.374 1.32
IRN -1.16 0.0663 1.23
BOL -1.76 -0.642 1.11
BFA -1.56 -0.519 1.04
SYR -1.25 -0.243 1
Note · countries with no sorghum data (shown white on every map above; the GCP sorghum pipeline does not run sims for non-producing countries): ABW, AIA, ALA, AND, ARE, ASM, ATA, ATF, ATG, BES, BHR, BHS, BLM, BMU, BRB, BRN, BVT, CCK, CL-, COK, COM, CPV, CUW, CXR, CYM, CYP, CZE, DJI, DMA, DNK, ESH, FLK, FRO, FSM, GAB, GBR, GGY, GIB, GLP, GNQ, GRD, GRL, GUF, GUM, HMD, Indonesia, IMN, IOT, IRL, Iraq, ISL, JAM, JEY, JPN, KHM, KIR, KNA, KWT, LBY, LCA, LIE, LTU, LUX, MAF, MCO, MDV, MHL, MLT, MNP, MSR, MTQ, MUS, MYT, NFK, NIU, NLD, Norway, NRU, NZL, PCN, Philippines, PLW, PRI, PYF, QAT, REU, SGP, SGS, SHN, SJM, SLB, SMX, SP-, SPM, STP, SUR, SWE, SYC, TCA, TKL, TLS, TON, TTO, TUV, UMI, VAT, VCT, VGB, VIR, VUT, WLF, WSM.

10.1 Scenario Summary

Table 7: Fit statistics across all 12 scenarios
RCP SSP Model N Corr RMSE Sign%
rcp45 SSP2 high 141 0.7767 0.195098 90.1%
rcp45 SSP2 low 141 0.7899 0.219704 88.7%
rcp45 SSP3 high 141 0.7889 0.240579 86.5%
rcp45 SSP3 low 141 0.8017 0.280873 87.2%
rcp45 SSP4 high 141 0.8279 0.237813 89.4%
rcp45 SSP4 low 141 0.8042 0.2559 87.9%
rcp85 SSP2 high 141 0.5204 0.437284 95.0%
rcp85 SSP2 low 141 0.4768 0.484028 94.3%
rcp85 SSP3 high 141 0.4851 0.488681 94.3%
rcp85 SSP3 low 141 0.4641 0.567771 93.6%
rcp85 SSP4 high 141 0.4808 0.516643 94.3%
rcp85 SSP4 low 141 0.4797 0.54338 94.3%

11 Data Reference

11.1 File Locations

Item Path
Regional CSV /project/cil/gcp/flex_damage_funcs/parameters/agriculture__sorghum_country_collapsed__regional_parameters.csv
Global JSON /project/cil/gcp/flex_damage_funcs/parameters/agriculture__sorghum_country_collapsed__global_results.json
Metadata JSON /project/cil/gcp/flex_damage_funcs/parameters/agriculture__sorghum_country_collapsed__metadata.json

11.2 Column Definitions

Column Description
region Region identifier (hierarchical code, first 3 chars = country ISO3)
gamma Income elasticity quantile value
alpha Linear temperature coefficient
beta Quadratic temperature coefficient
sigma11 Var(alpha)
sigma12 Cov(alpha, beta)
sigma22 Var(beta)
rho Correlation with global residual process
zeta Temperature-dependent heteroskedasticity
eta Residual standard deviation
rsqr1 R-squared of polynomial fit
rsqr2 R-squared of error model

Report generated with FlexDamage v1.0.0