Flexible Damage Functions

Author

James Rising, Sebastian Cadavid Sanchez, Climate Impact Lab

Published

September 14, 2026

0.1 Agriculture: Rice Country Collapsed

Flexible damage function parameters at the Country level.

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

Outcome units: log_yield_change. Log change in rice 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.4758
Standard error 1.25e-02
95% CI [0.4513, 0.5003]
R-squared 0.9519
Observations 142,044
Regions 140
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.475761, 140 rows (of 2,660 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.007433 0.005804 0.006207 2.38e-05 0.04041 140
beta -0.001258 -0.0009481 0.001117 -0.007111 0 140
rho 0.5142 0.5385 0.1656 0.06681 0.7861 140
zeta 0.0005838 0.000397 0.0008044 5.034e-05 0.007716 140
eta 0.0009841 0.0006609 0.001072 9.199e-05 0.007752 140
rsqr1 0.7527 0.8074 0.1621 0.009326 0.9062 140
rsqr2 0.5543 0.5589 0.07312 0.3068 0.8166 140

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) 2 1.4%
T > 20°C (beyond graph) 0 0.0%
T < 0°C (negative crossing) 0 0.0%
Valid crossings (0-20°C) 138 98.6%
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.3068 0.5143 0.5589 0.5947 0.8166

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.9892
Sum(η²) 0.0003
Sum(D²) at T=3.0°C 0.0273
N regions 140

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²
THA 0.00679 -0.00115 4.47e-4 0.906
TUN 0.00562 -9.52e-4 3.73e-4 0.904
EGY 0.00669 -0.00114 4.57e-4 0.902
TTO 0.00129 -1.54e-4 7.76e-4 0.197
BFA 0.00749 -9.87e-4 0.00329 0.347
SOM 0.0404 -0.00701 0.00775 0.364
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.1696 | RMSE: 2.219216 | Sign agreement: 15.7%

Top 5 best predicted   Top 5 worst predicted
Year 2098 · Tmean across these regions: 1.94°C
Region Raw Flex Residual
KGZ -0.0827 0.00799 0.0907
AUT 0.457 0.133 -0.323
MAC -0.174 0.152 0.326
JPN 0.177 0.506 0.328
BRN -0.162 0.208 0.37
ZWE -0.154 7.07 7.22
LBR -0.146 4.72 4.86
MOZ -0.125 4.61 4.73
MWI -0.13 4.33 4.46
COD -0.112 4.14 4.25

Correlation: -0.3041 | RMSE: 1.673605 | Sign agreement: 10.0%

Top 5 best predicted   Top 5 worst predicted
Year 2098 · Tmean across these regions: 1.94°C
Region Raw Flex Residual
KGZ -0.0387 0.00956 0.0483
AUT 0.419 0.116 -0.303
MAC -0.156 0.152 0.309
JPN 0.164 0.478 0.314
BRN -0.221 0.135 0.356
SOM -0.308 4.51 4.82
ZWE -0.213 3.33 3.54
COD -0.119 3.4 3.52
LBR -0.166 2.99 3.15
TLS -0.114 2.91 3.03

Correlation: -0.2186 | RMSE: 1.387207 | Sign agreement: 10.0%

Top 5 best predicted   Top 5 worst predicted
Year 2098 · Tmean across these regions: 1.94°C
Region Raw Flex Residual
KGZ -0.139 0.00592 0.145
JPN 0.138 0.428 0.29
MAC -0.169 0.136 0.305
AUT 0.423 0.115 -0.309
BRN -0.158 0.161 0.318
ZWE -0.196 4.12 4.32
MWI -0.196 2.27 2.47
MOZ -0.222 2.12 2.34
LBR -0.203 2.13 2.33
COD -0.13 2.12 2.25

Correlation: -0.1986 | RMSE: 1.144290 | Sign agreement: 7.1%

Top 5 best predicted   Top 5 worst predicted
Year 2098 · Tmean across these regions: 1.94°C
Region Raw Flex Residual
KGZ -0.0523 0.00876 0.0611
JPN 0.148 0.444 0.295
AUT 0.413 0.11 -0.303
MAC -0.17 0.136 0.306
BRN -0.223 0.105 0.328
SOM -0.476 1.78 2.26
TLS -0.0832 2.01 2.09
IRQ -0.745 1.32 2.06
KHM -0.157 1.88 2.04
IDN -0.113 1.82 1.93

Correlation: -0.2455 | RMSE: 1.464868 | Sign agreement: 12.9%

Top 5 best predicted   Top 5 worst predicted
Year 2098 · Tmean across these regions: 1.94°C
Region Raw Flex Residual
KGZ -0.14 0.00578 0.146
MAC -0.173 0.15 0.323
AUT 0.507 0.137 -0.37
BRN -0.185 0.196 0.381
JPN 0.16 0.583 0.423
ZWE -0.38 3.69 4.07
IDN -0.0833 2.61 2.7
GUY -0.117 2.3 2.42
BOL -0.316 2.03 2.34
IRQ -0.742 1.56 2.3

Correlation: -0.2687 | RMSE: 1.272904 | Sign agreement: 6.4%

Top 5 best predicted   Top 5 worst predicted
Year 2098 · Tmean across these regions: 1.94°C
Region Raw Flex Residual
KGZ -0.0566 0.0082 0.0648
AUT 0.424 0.117 -0.307
MAC -0.174 0.15 0.324
JPN 0.149 0.487 0.338
BRN -0.257 0.0994 0.356
SOM -0.404 2.65 3.05
ZWE -0.276 2.36 2.63
COD -0.125 2.23 2.36
TLS -0.1 2.14 2.24
IRQ -0.768 1.35 2.12

Correlation: -0.1141 | RMSE: 2.339750 | Sign agreement: 8.6%

Top 5 best predicted   Top 5 worst predicted
Year 2098 · Tmean across these regions: 4.19°C
Region Raw Flex Residual
KGZ -0.253 0.0173 0.271
MAC -0.196 0.16 0.357
JPN 0.207 0.623 0.417
PER 0.203 0.831 0.628
MNG -0.0341 0.598 0.632
ZWE -0.379 4.99 5.37
TGO -0.552 3.64 4.19
MWI -0.25 3.83 4.08
MLI -0.678 3.37 4.05
CIV -0.419 3.55 3.97

Correlation: -0.2888 | RMSE: 1.912406 | Sign agreement: 6.4%

Top 5 best predicted   Top 5 worst predicted
Year 2098 · Tmean across these regions: 4.19°C
Region Raw Flex Residual
KGZ -0.166 0.0206 0.186
MAC -0.192 0.16 0.353
JPN 0.174 0.59 0.416
PER 0.0234 0.544 0.52
AUT 0.682 0.153 -0.529
SOM -0.716 4.02 4.73
MLI -0.964 2.3 3.27
HTI -1.21 1.85 3.06
IRQ -1.38 1.65 3.03
PAK -0.959 2.01 2.97

Correlation: -0.2315 | RMSE: 1.697387 | Sign agreement: 5.0%

Top 5 best predicted   Top 5 worst predicted
Year 2098 · Tmean across these regions: 4.19°C
Region Raw Flex Residual
JPN 0.177 0.527 0.35
MAC -0.209 0.143 0.352
KGZ -0.415 0.0128 0.427
AUT 0.654 0.151 -0.503
PRK 0.199 0.715 0.515
ZWE -0.576 2.91 3.49
MLI -1.09 1.63 2.72
SYR -1.51 1.18 2.69
TGO -0.935 1.71 2.64
MRT -0.987 1.61 2.59

Correlation: -0.1997 | RMSE: 1.482364 | Sign agreement: 5.7%

Top 5 best predicted   Top 5 worst predicted
Year 2098 · Tmean across these regions: 4.19°C
Region Raw Flex Residual
KGZ -0.201 0.0189 0.22
MAC -0.182 0.143 0.325
JPN 0.209 0.547 0.338
PRK 0.15 0.598 0.448
AUT 0.624 0.145 -0.479
SOM -1.03 1.59 2.62
IRQ -1.54 1.08 2.61
BWA -1.33 1.23 2.56
ZWE -1.71 0.82 2.53
HTI -1.38 0.881 2.26

Correlation: -0.1963 | RMSE: 1.713091 | Sign agreement: 9.3%

Top 5 best predicted   Top 5 worst predicted
Year 2098 · Tmean across these regions: 4.19°C
Region Raw Flex Residual
MAC -0.16 0.157 0.317
KGZ -0.434 0.0125 0.447
JPN 0.251 0.718 0.467
PRK 0.248 0.81 0.562
BRN -0.187 0.423 0.61
ZWE -0.87 2.61 3.48
IRQ -1.51 1.27 2.78
BWA -1.2 1.57 2.78
MAR -1.06 1.68 2.74
BOL -0.604 2.01 2.62

Correlation: -0.2962 | RMSE: 1.600546 | Sign agreement: 3.6%

Top 5 best predicted   Top 5 worst predicted
Year 2098 · Tmean across these regions: 4.19°C
Region Raw Flex Residual
KGZ -0.248 0.0177 0.266
MAC -0.213 0.157 0.37
JPN 0.169 0.6 0.432
AUT 0.663 0.154 -0.509
PER -0.0675 0.45 0.518
SOM -0.934 2.36 3.3
IRQ -1.58 1.1 2.68
BWA -1.37 1.2 2.57
MLI -1.21 1.31 2.52
HTI -1.33 1.16 2.49
Note · countries with no rice data (shown white on every map above; the GCP rice pipeline does not run sims for non-producing countries): ABW, AIA, ALA, AND, ARE, ASM, ATA, ATF, ATG, BEL, BES, BHR, BHS, BIH, BLM, BMU, BRB, BVT, Canada, CCK, CL-, COK, CPV, CUW, CXR, CYM, CYP, CZE, Germany, DJI, DMA, DNK, ESH, EST, FIN, FLK, FRO, FSM, GBR, GGY, GIB, GLP, GNQ, GRD, GRL, GUM, HMD, HRV, IMN, IOT, IRL, ISL, ISR, JEY, JOR, KIR, KNA, KWT, LBN, LBY, LCA, LIE, LTU, LUX, LVA, MAF, MCO, MDV, MHL, MLT, MNP, MSR, MTQ, MUS, MYT, NCL, NFK, NIU, NLD, Norway, NRU, NZL, OMN, PCN, PLW, PRI, PSE, PYF, QAT, SAU, SGS, SHN, SJM, SMX, SP-, SPM, STP, SVN, SWE, SYC, TCA, TKL, TON, 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 140 -0.1696 2.21922 15.7%
rcp45 SSP2 low 140 -0.3041 1.67361 10.0%
rcp45 SSP3 high 140 -0.2186 1.38721 10.0%
rcp45 SSP3 low 140 -0.1986 1.14429 7.1%
rcp45 SSP4 high 140 -0.2455 1.46487 12.9%
rcp45 SSP4 low 140 -0.2687 1.2729 6.4%
rcp85 SSP2 high 140 -0.1141 2.33975 8.6%
rcp85 SSP2 low 140 -0.2888 1.91241 6.4%
rcp85 SSP3 high 140 -0.2315 1.69739 5.0%
rcp85 SSP3 low 140 -0.1997 1.48236 5.7%
rcp85 SSP4 high 140 -0.1963 1.71309 9.3%
rcp85 SSP4 low 140 -0.2962 1.60055 3.6%

11 Data Reference

11.1 File Locations

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