Flexible Damage Functions

Author

James Rising, Sebastian Cadavid Sanchez, Climate Impact Lab

Published

September 14, 2026

0.1 Agriculture: Soy Country Collapsed

Flexible damage function parameters at the Country level.

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

Outcome units: log_yield_change. Log change in soy 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.2806
Standard error 1.75e-02
95% CI [-0.3149, -0.2464]
R-squared 0.8897
Observations 137,985
Regions 136
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.280627, 136 rows (of 2,584 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 -4.282 -3.79 3.317 -19.62 3.748 136
beta -0.1843 0 0.4223 -2.578 0 136
rho 0.6079 0.6463 0.1638 -0.08714 0.8694 136
zeta 1.752 1.698 0.6421 0.4788 3.624 136
eta 2.742 2.771 1.118 0.642 5.889 136
rsqr1 0.5 0.4823 0.2285 0.005472 0.909 136
rsqr2 0.6168 0.6398 0.09063 0.4081 0.7654 136

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) 98 72.1%
T > 20°C (beyond graph) 0 0.0%
T < 0°C (negative crossing) 36 26.5%
Valid crossings (0-20°C) 2 1.5%
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.4081 0.5456 0.6398 0.6864 0.7654

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.9719
Sum(η²) 1191.1137
Sum(D²) at T=3.0°C 42388.2371
N regions 136

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 -1.56 -2.13 2.53 0.86
UZB -12.3 -0.372 2.79 0.857
BWA -16 -0.0252 3.64 0.851
DEU 0.983 -0.491 0.969 0.274
CZE -0.458 -0.407 1.51 0.342
LUX -0.7 -0.514 2.24 0.356
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.5445 | RMSE: 0.657336 | Sign agreement: 59.6%

Top 5 best predicted   Top 5 worst predicted
Year 2098 · Tmean across these regions: 1.94°C
Region Raw Flex Residual
PER -0.245 -0.245 3.31e-5
BEL -0.169 -0.164 0.0055
ARM -0.254 -0.244 0.0096
SUR -0.37 -0.381 -0.0103
RWA -0.242 -0.23 0.0113
VNM 1.17 -0.668 -1.84
KHM 1.33 -0.441 -1.77
ECU 1.1 -0.393 -1.49
HKG 0.975 -0.43 -1.41
THA 0.943 -0.415 -1.36

Correlation: 0.4835 | RMSE: 0.696354 | Sign agreement: 58.1%

Top 5 best predicted   Top 5 worst predicted
Year 2098 · Tmean across these regions: 1.94°C
Region Raw Flex Residual
SUR -0.392 -0.4 -0.00874
MOZ -0.695 -0.706 -0.0108
ITA -0.518 -0.501 0.0177
GUY -0.462 -0.485 -0.0227
ZMB -0.531 -0.559 -0.0279
VNM 1.12 -0.705 -1.82
KHM 1.28 -0.496 -1.77
ECU 1.13 -0.465 -1.6
THA 0.958 -0.48 -1.44
PNG 0.894 -0.503 -1.4

Correlation: 0.5035 | RMSE: 0.702625 | Sign agreement: 58.1%

Top 5 best predicted   Top 5 worst predicted
Year 2098 · Tmean across these regions: 1.94°C
Region Raw Flex Residual
HRV -0.536 -0.528 0.00715
BEL -0.168 -0.18 -0.0121
USA -0.583 -0.57 0.0124
SUR -0.414 -0.463 -0.0488
AUT -0.251 -0.202 0.0496
KHM 1.35 -0.609 -1.96
VNM 1.11 -0.835 -1.95
ECU 1.06 -0.508 -1.57
PNG 0.899 -0.575 -1.47
IDN 0.704 -0.764 -1.47

Correlation: 0.3894 | RMSE: 0.812412 | Sign agreement: 55.9%

Top 5 best predicted   Top 5 worst predicted
Year 2098 · Tmean across these regions: 1.94°C
Region Raw Flex Residual
MDA -0.536 -0.527 0.00994
MNG -0.18 -0.196 -0.0156
ARM -0.26 -0.236 0.0238
BEL -0.158 -0.183 -0.025
SOM -0.767 -0.729 0.0382
KHM 1.39 -0.634 -2.02
VNM 1.13 -0.833 -1.96
GIN 0.693 -1.03 -1.72
ECU 1.01 -0.592 -1.61
PNG 0.927 -0.642 -1.57

Correlation: 0.4359 | RMSE: 0.718495 | Sign agreement: 57.4%

Top 5 best predicted   Top 5 worst predicted
Year 2098 · Tmean across these regions: 1.94°C
Region Raw Flex Residual
PER -0.242 -0.245 -0.00315
BEL -0.169 -0.161 0.0072
SUR -0.374 -0.388 -0.0136
ARM -0.249 -0.235 0.0143
MNE -0.253 -0.292 -0.039
KHM 1.31 -0.652 -1.97
VNM 1.04 -0.679 -1.72
PNG 0.985 -0.634 -1.62
ECU 1.09 -0.407 -1.5
NPL 0.764 -0.667 -1.43

Correlation: 0.4542 | RMSE: 0.742062 | Sign agreement: 57.4%

Top 5 best predicted   Top 5 worst predicted
Year 2098 · Tmean across these regions: 1.94°C
Region Raw Flex Residual
ITA -0.496 -0.496 6.77e-4
ERI -0.404 -0.406 -0.0021
ARM -0.242 -0.246 -0.00457
HRV -0.517 -0.496 0.0216
PAK -1.76 -1.73 0.0332
KHM 1.34 -0.622 -1.96
VNM 1.1 -0.83 -1.93
ECU 1.07 -0.569 -1.64
HKG 1.04 -0.481 -1.52
PNG 0.913 -0.602 -1.52

Correlation: 0.5854 | RMSE: 1.379577 | Sign agreement: 58.1%

Top 5 best predicted   Top 5 worst predicted
Year 2098 · Tmean across these regions: 4.19°C
Region Raw Flex Residual
MWI -0.921 -0.919 0.00168
RWA -0.499 -0.497 0.00183
USA -1.17 -1.19 -0.0247
BOL -1.15 -1.12 0.0337
ERI -0.745 -0.691 0.0538
KHM 2.44 -0.951 -3.4
VNM 1.95 -1.44 -3.39
LAO 1.99 -0.758 -2.75
THA 1.81 -0.897 -2.71
MYS 2.04 -0.551 -2.59

Correlation: 0.5213 | RMSE: 1.433780 | Sign agreement: 58.8%

Top 5 best predicted   Top 5 worst predicted
Year 2098 · Tmean across these regions: 4.19°C
Region Raw Flex Residual
LSO -0.792 -0.76 0.0324
SUR -0.83 -0.864 -0.034
ERI -0.741 -0.691 0.0504
USA -1.21 -1.14 0.0679
PER -0.539 -0.68 -0.141
KHM 2.31 -1.07 -3.39
VNM 1.81 -1.52 -3.33
LAO 1.8 -1 -2.8
THA 1.73 -1.04 -2.77
PNG 1.63 -1.09 -2.72

Correlation: 0.5405 | RMSE: 1.446818 | Sign agreement: 58.1%

Top 5 best predicted   Top 5 worst predicted
Year 2098 · Tmean across these regions: 4.19°C
Region Raw Flex Residual
LSO -0.822 -0.768 0.0538
USA -1.16 -1.23 -0.0695
PER -0.56 -0.658 -0.0977
SUR -0.877 -1 -0.123
ZWE -2.2 -2.36 -0.161
VNM 1.76 -1.8 -3.56
KHM 2.2 -1.32 -3.52
IDN 1.28 -1.65 -2.93
THA 1.68 -1.14 -2.83
LAO 1.78 -1.02 -2.8

Correlation: 0.3934 | RMSE: 1.667657 | Sign agreement: 55.9%

Top 5 best predicted   Top 5 worst predicted
Year 2098 · Tmean across these regions: 4.19°C
Region Raw Flex Residual
USA -1.13 -1.15 -0.0236
SVN -1.43 -1.32 0.11
SWZ -1.32 -1.47 -0.145
SUR -0.843 -0.993 -0.15
SOM -1.36 -1.57 -0.211
KHM 2.32 -1.37 -3.69
VNM 1.86 -1.8 -3.66
GIN 1.31 -2.21 -3.52
LAO 1.63 -1.48 -3.12
PRY 0.757 -2.33 -3.08

Correlation: 0.4268 | RMSE: 1.538066 | Sign agreement: 56.6%

Top 5 best predicted   Top 5 worst predicted
Year 2098 · Tmean across these regions: 4.19°C
Region Raw Flex Residual
BOL -1.21 -1.21 0.00544
SWZ -1.36 -1.32 0.0429
SUR -0.889 -0.837 0.0518
GEO -1.21 -1.27 -0.0587
PER -0.597 -0.529 0.0679
KHM 2.33 -1.41 -3.74
VNM 1.83 -1.47 -3.3
TLS 0.24 -2.93 -3.18
PNG 1.64 -1.37 -3.01
COD 0.186 -2.8 -2.99

Correlation: 0.4541 | RMSE: 1.565651 | Sign agreement: 56.6%

Top 5 best predicted   Top 5 worst predicted
Year 2098 · Tmean across these regions: 4.19°C
Region Raw Flex Residual
USA -1.17 -1.12 0.0508
SWZ -1.36 -1.3 0.0603
SUR -0.907 -1.03 -0.123
SYR -4.65 -4.51 0.136
SOM -1.39 -1.25 0.146
KHM 2.39 -1.34 -3.73
VNM 1.87 -1.79 -3.66
GIN 1.3 -1.75 -3.06
THA 1.77 -1.26 -3.03
LAO 1.74 -1.25 -2.99
Note · countries with no soy data (shown white on every map above; the GCP soy 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, CUB, CUW, CXR, CYM, CYP, DJI, DMA, DOM, DZA, ESH, FJI, FLK, FRO, FSM, GBR, GGY, GIB, GLP, GMB, GNB, GNQ, GRD, GRL, GUF, GUM, HMD, HTI, IMN, IOT, IRL, Iraq, ISL, JAM, JEY, JOR, KIR, KNA, KWT, LBY, LCA, LIE, MAF, MCO, MDV, MHL, MKD, MLT, MNP, MRT, MSR, MTQ, MUS, MYT, NCL, NFK, NIU, Norway, NRU, NZL, OMN, PCN, PLW, PRI, PSE, PYF, QAT, REU, SAU, SEN, SGP, SGS, SHN, SJM, SLB, SMX, SP-, SPM, STP, SWE, SYC, TCA, TKL, TON, TTO, TUN, TUV, UMI, VAT, VCT, VGB, VIR, VUT, WLF, WSM, YEM.

10.1 Scenario Summary

Table 7: Fit statistics across all 12 scenarios
RCP SSP Model N Corr RMSE Sign%
rcp45 SSP2 high 136 0.5445 0.657336 59.6%
rcp45 SSP2 low 136 0.4835 0.696354 58.1%
rcp45 SSP3 high 136 0.5035 0.702625 58.1%
rcp45 SSP3 low 136 0.3894 0.812412 55.9%
rcp45 SSP4 high 136 0.4359 0.718495 57.4%
rcp45 SSP4 low 136 0.4542 0.742062 57.4%
rcp85 SSP2 high 136 0.5854 1.37958 58.1%
rcp85 SSP2 low 136 0.5213 1.43378 58.8%
rcp85 SSP3 high 136 0.5405 1.44682 58.1%
rcp85 SSP3 low 136 0.3934 1.66766 55.9%
rcp85 SSP4 high 136 0.4268 1.53807 56.6%
rcp85 SSP4 low 136 0.4541 1.56565 56.6%

11 Data Reference

11.1 File Locations

Item Path
Regional CSV /project/cil/gcp/flex_damage_funcs/parameters/agriculture__soy_country_collapsed__regional_parameters.csv
Global JSON /project/cil/gcp/flex_damage_funcs/parameters/agriculture__soy_country_collapsed__global_results.json
Metadata JSON /project/cil/gcp/flex_damage_funcs/parameters/agriculture__soy_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