MDI: Compute the multivariate drought index

Description Usage Arguments Value Examples

View source: R/MDI.R

Description

Based on the vector of a monthly hydro-climatic variable, the multivariate drought index is computed based on the marginal (or univariate) probability (or percentile) from the function SDI.

Usage

1
MDI(X, Y, ts = 6)

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.

Value

The multivariate drought index of different time scales from the marginal probability (or percentile)

Examples

1
2
3
4
X=runif(120, min = 0, max = 100)
Y=runif(120, min = 0, max = 100)
fit<-MDI(X,Y,ts=6) # Compute the 6 month drought index
fit$ProbEmp2 #Get the empirival drought index

drought documentation built on May 31, 2017, 4:15 a.m.