SPIF: SPI and Drought Events Characteristics

Description Usage Arguments Details Examples

View source: R/SPIF.R

Description

This function allows to compute the Standarized Precipitation Index (SPI) based on an established. climatological period Esta es una funcion de ejemplo para multiplicar un valor o vector x por cuatro.

Usage

1
2
SPIF(data, scale, ini.clim = NULL, fin.clim = NULL, threshold = NULL,
  distr = "gamma")

Arguments

data

a zoo object with time ordered values of monthly precipitation.

scale

an integer value representing the time scale at which the SPI will be computed.

ini.clim

optional, character date of starting point of the reference period used for computing the index (p.e. c("1981-01-01")).Defaults to NULL

fin.clim

optional, character date of ending point of the reference period used for computing the index (p.e. c("2010-12-01")). Defaults to NULL

threshold

optional, a negative integer value defining the threashold to use for drought events based on SPI series. Defaults to -1.

distr

distribution function to standarize data, could be: "gamma","gev" or "genlog". Default "gamma"

Details

The fitSCI function allow computing the SPI index. Basically, the fitSCI function standardize the precipitation following a Gamma distribution function (i.e., they transform it to a standard Gaussian variate with zero mean and standard deviation of one).

Examples

1
SPIF(data,scale,ini.clim=NULL,fin.clim=NULL,threshold=NULL,distr="gamma")

Fiorella-vj/SPID documentation built on May 30, 2019, midnight