Flexible Damage Functions

Author

James Rising, Sebastian Cadavid Sanchez, Climate Impact Lab

Published

September 14, 2026

0.1 Agriculture: Wheat Spring Country Collapsed

Flexible damage function parameters at the Country level.

Change in spring wheat yields (log change in yields) under full adaptation

Outcome units: log_yield_change. Log change in spring wheat 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.0011
Standard error 2.94e-03
95% CI [-0.0069, 0.0046]
R-squared 0.7514
Observations 93,343
Regions 138
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.001128, 138 rows (of 2,622 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.01906 -0.02749 0.04869 -0.2229 0.1542 138
beta -0.004298 -0.001805 0.01047 -0.08901 0 138
rho 0.04002 0.0306 0.1293 -0.2075 0.9189 138
zeta 0.01241 0.006109 0.02259 0.002483 0.1631 138
eta 0.02408 0.01066 0.04617 0.004393 0.3452 138
rsqr1 0.7138 0.8784 0.2973 0.003252 0.9679 138
rsqr2 0.534 0.5402 0.06921 0.1864 0.6787 138

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) 31 22.5%
T > 20°C (beyond graph) 2 1.4%
T < 0°C (negative crossing) 82 59.4%
Valid crossings (0-20°C) 23 16.7%
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.1864 0.5028 0.5402 0.5731 0.6787

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.9377
Sum(η²) 0.3720
Sum(D²) at T=3.0°C 5.9684
N regions 138

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²
LBY -0.0596 -0.00189 0.00732 0.968
ISR -0.0663 -0.00302 0.00968 0.967
KWT -0.116 -8.62e-4 0.0132 0.966
AGO 0.00554 -9.74e-4 0.00971 0.0124
BLZ 0.0861 -0.0302 0.225 0.0272
SLV 0.0622 -0.00772 0.0899 0.0598
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: 2,024 rows

Correlation: 0.6437 | RMSE: 0.172115 | Sign agreement: 76.1%

Top 5 best predicted   Top 5 worst predicted
Year 2098 · Tmean across these regions: 1.94°C
Region Raw Flex Residual
PSE -0.0746 -0.069 0.00551
AZE -0.06 -0.0521 0.0079
GRC -0.0604 -0.0698 -0.00934
CA- -0.028 -0.0386 -0.0106
TUR -0.0917 -0.0811 0.0106
BTN -1.44 -0.602 0.835
GTM -0.3 0.0957 0.396
VNM -0.438 -0.0427 0.395
IND -0.467 -0.12 0.347
SWZ -0.336 0.00599 0.342

Correlation: 0.6750 | RMSE: 0.154275 | Sign agreement: 77.5%

Top 5 best predicted   Top 5 worst predicted
Year 2098 · Tmean across these regions: 1.94°C
Region Raw Flex Residual
PRT -0.121 -0.123 -0.00201
TUR -0.0777 -0.0811 -0.00334
KGZ -0.0147 -0.0196 -0.00488
GRC -0.0616 -0.0697 -0.00813
PSE -0.0777 -0.069 0.00865
BTN -1.34 -0.602 0.737
VNM -0.448 -0.0427 0.406
GTM -0.249 0.0957 0.345
SWZ -0.311 0.00599 0.317
IND -0.417 -0.12 0.297

Correlation: 0.6530 | RMSE: 0.146928 | Sign agreement: 74.6%

Top 5 best predicted   Top 5 worst predicted
Year 2098 · Tmean across these regions: 1.94°C
Region Raw Flex Residual
TUR -0.0843 -0.0811 0.0032
GRC -0.0657 -0.0698 -0.00407
MMR -0.438 -0.431 0.0065
AZE -0.0604 -0.0521 0.00831
MAR -0.0841 -0.0751 0.00902
BTN -1.21 -0.602 0.613
VNM -0.45 -0.0427 0.407
IND -0.442 -0.12 0.323
BLZ -0.236 0.0528 0.288
SWZ -0.264 0.006 0.27

Correlation: 0.6008 | RMSE: 0.128619 | Sign agreement: 74.6%

Top 5 best predicted   Top 5 worst predicted
Year 2098 · Tmean across these regions: 1.94°C
Region Raw Flex Residual
BWA -0.103 -0.101 0.00211
AZE -0.0547 -0.0521 0.00264
YEM -0.0483 -0.0532 -0.00488
GRC -0.0634 -0.0697 -0.00638
PRT -0.111 -0.123 -0.0129
VNM -0.346 -0.0428 0.303
BTN -0.902 -0.603 0.299
NER -0.146 0.118 0.264
SWZ -0.256 0.006 0.262
BLZ -0.205 0.0527 0.258

Correlation: 0.8457 | RMSE: 0.339632 | Sign agreement: 79.7%

Top 5 best predicted   Top 5 worst predicted
Year 2098 · Tmean across these regions: 4.19°C
Region Raw Flex Residual
SYR -0.163 -0.162 8.03e-4
AZE -0.114 -0.112 0.0017
IRQ -0.2 -0.203 -0.00263
TUN -0.191 -0.183 0.00771
AUS -0.446 -0.454 -0.00814
NPL -2.39 -0.955 1.44
BGD -2.67 -1.53 1.14
BTN -3.12 -2.13 0.999
ETH -0.912 0.0285 0.94
GTM -1.2 -0.292 0.907

Correlation: 0.8712 | RMSE: 0.290406 | Sign agreement: 80.4%

Top 5 best predicted   Top 5 worst predicted
Year 2098 · Tmean across these regions: 4.19°C
Region Raw Flex Residual
CA- -0.0832 -0.0833 -1.47e-4
AUS -0.456 -0.454 0.00203
GUY 0.492 0.489 -0.00304
PRT -0.259 -0.267 -0.00725
BEN 0.284 0.275 -0.00913
NPL -2.25 -0.956 1.3
BGD -2.42 -1.54 0.89
BTN -2.9 -2.13 0.778
GTM -1.07 -0.293 0.776
ETH -0.673 0.0286 0.702

Correlation: 0.8718 | RMSE: 0.265412 | Sign agreement: 80.4%

Top 5 best predicted   Top 5 worst predicted
Year 2098 · Tmean across these regions: 4.19°C
Region Raw Flex Residual
BWA -0.236 -0.234 0.00162
IRQ -0.198 -0.203 -0.00535
CA- -0.0767 -0.0833 -0.00659
KAZ -0.203 -0.213 -0.00989
AZE -0.124 -0.112 0.0114
NPL -1.8 -0.958 0.842
KOR -0.989 -0.295 0.694
ETH -0.604 0.0286 0.632
GTM -0.891 -0.293 0.598
IND -0.996 -0.42 0.576

Correlation: 0.8643 | RMSE: 0.233885 | Sign agreement: 79.0%

Top 5 best predicted   Top 5 worst predicted
Year 2098 · Tmean across these regions: 4.19°C
Region Raw Flex Residual
GUY 0.487 0.489 0.00229
KGZ -0.0457 -0.0502 -0.0045
AZE -0.108 -0.112 -0.0047
YEM -0.135 -0.129 0.00581
BEN 0.268 0.275 0.00671
NPL -1.74 -0.957 0.786
GTM -0.885 -0.293 0.592
ETH -0.555 0.0286 0.584
KOR -0.86 -0.295 0.565
IND -0.859 -0.42 0.439
Note · countries with no wheat spring data (shown white on every map above; the GCP wheat spring pipeline does not run sims for non-producing countries): ABW, AIA, ALA, AND, ASM, ATA, ATF, ATG, BES, BHR, BHS, BLM, BMU, BRB, BRN, BVT, CCK, CIV, CL-, COK, COM, CPV, CRI, CUB, CUW, CXR, CYM, CYP, DJI, DMA, DOM, ESH, FJI, FLK, FRO, FSM, GAB, GGY, Ghana, GIB, GIN, GLP, GMB, GNB, GNQ, GRD, GRL, GUF, GUM, HKG, HMD, HTI, Indonesia, IMN, IOT, ISL, JAM, JEY, KHM, KIR, KNA, LBR, LCA, LIE, LKA, MAC, MAF, MCO, MDV, MHL, MNP, MSR, MTQ, MUS, MYT, NFK, NIU, NRU, PAN, PCN, Philippines, PLW, PNG, PRI, PYF, QAT, REU, SGP, SGS, SHN, SJM, SLB, SLE, SMX, SP-, SPM, STP, SUR, SYC, TCA, TGO, TKL, TLS, TON, TTO, TUV, TWN, 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 138 0.6437 0.172115 76.1%
rcp45 SSP2 low 138 0.675 0.154275 77.5%
rcp45 SSP4 high 138 0.653 0.146928 74.6%
rcp45 SSP4 low 138 0.6008 0.128619 74.6%
rcp85 SSP2 high 138 0.8457 0.339632 79.7%
rcp85 SSP2 low 138 0.8712 0.290406 80.4%
rcp85 SSP4 high 138 0.8718 0.265412 80.4%
rcp85 SSP4 low 138 0.8643 0.233885 79.0%

11 Data Reference

11.1 File Locations

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