ImpactMG | R Documentation |

Use the meta-Gaussian model to construct conditional distributions of the impact variable (Y) given drought and hot conditions P(Y|PRC,TEM).

```
ImpactMG(PRC,TEM,Y,u0)
```

`PRC` |
Precipitation or drought indicator corresponding to the impact variable Y |

`TEM` |
Temperature or heat indicator corresponding to the impact variable Y |

`Y` |
Impact variable (e.g., Crop yield) |

`u0` |
Initial condition of (PRC,TEM) |

A vector of conditional mean and variance evaluated at u0

Feng, S. et al. (2019). Probabilistic evaluation of the impact of compound dry-hot events on global maize yields. Sci. Total. Environ., 689: 1228-1234.

Hao, Z. et al. (2018). A multivariate approach for statistical assessments of compound extremes. J. Hydrol., 565: 87-94.

```
PRC=matrix(rnorm(60,0,1),ncol=1)
TEM=matrix(rnorm(60,0,1),ncol=1)
Y=matrix(rnorm(60,0,1),ncol=1)
u0=c(-1.2,1.2) # Speficify the compound dry-hot condition
ImpactMG(PRC,TEM,Y,u0)
```

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.