Learn R Programming

drought (version 1.2)

MSDI: Compute the Multivariate Standardized Drought Index (MSDI)

Description

Based on a pair of monthly hydro-climatic variable (or corresponding marginals), the MSDI is computed using the joint distribution (parametric or nonparametric forms). The current version is based on the Gringorten plotting position. It can be extended to higher dimensions, such as trivariate case including meteorological, agricultural, and hydrological droughts. For the high dimension case, the copula or vine copula method can be employed

Usage

MSDI(X, Y, ts = 6)

Value

The monthly MSDI series of different time scales (based on Gringorten plotting position)

Arguments

X

is the vector of a monthly hydro-climatic variable of n years.

Y

is the vector of a monthly hydro-climatic variable of n years.

ts

is the accumulated time scale.

References

Hao and AghaKouchak (2013) Multivariate Standardized Drought Index: A parametric multi-index model, Advances in Water Resources 57, 12-18.

Examples

Run this code

X=runif(120, min = 0, max = 100) # 10-year monthly data
Y=runif(120, min = 0, max = 100) # 10-year monthly data
fit<-MSDI(X,Y,ts=6) # Compute the 6 month drought index
fit$ProbEmp2 #Get the empirical drought index (e.g.,Gringorten plotting position )

Run the code above in your browser using DataLab