SPIChanges: Detect trends and quantify their effect on the probability of...

View source: R/SPIChanges.R

SPIChangesR Documentation

Detect trends and quantify their effect on the probability of SPI values occurring

Description

Detect trends and quantify their effect on the probability of SPI values occurring

Usage

SPIChanges(rain.at.TS, only.linear = "Yes")

Arguments

rain.at.TS

A 4-column matrix generated with TSaggreg(). No other objects are accepted.

  • 1st column is years (YYYY),

  • 2nd is the months (1 to 12),

  • 3rd is the quasiWeeks (1 to 4),

  • and 4th is the rainfall totals accumulated at a time scale.

only.linear

A character string value (Yes or No) defining if the function must consider only linear models (Yes) or linear and non-linear models (No). Default is Yes.

Value

A list object with:

data.week

The Rainfall amounts, SPI, cumulative probability of the SPI values under the stationary approach, cumulative probability of the SPI values under the non-stationary approach, and the changes in the frequency of below zero SPI values caused by the changes in rainfall patterns.

model.selection

The generalized additive model that best fits the rainfall series

Changes.Freq.Drought

changes in the frequency of zero precipitation, moderate to extreme, severe to extreme and extreme drought events,as categorized by the SPI classification system, caused by the changes in rainfall patterns. Changes in the precipitation amounts associated describing normal conditions is also shown.

Statistics

Year to year changes in the expected frequency of moderate to extreme, severe to extreme and extreme drought events.

data.week

The Rainfall amounts, SPI, cumulative probability of the SPI values under the stationary approach, cumulative probability of the SPI values under the non-stationary approach, and the changes in the frequency of below zero SPI values caused by the changes in rainfall patterns.

model.selection

The generalized additive model that best fits the rainfall series

Changes.Freq.Drought

changes in the frequency of zero precipitation, moderate, severe and extreme drought events, as defined by the SPI classification system, caused by the changes in rainfall patterns. Changes in the precipitation amounts associated describing normal conditions is also shown.

Statistics

Year to year changes in the expected frequency of moderate, severe and extreme drought events.

Examples


rainTS4 <- rainTS4
Changes_SPI <- SPIChanges(rain.at.TS=rainTS4, only.linear = "yes")

SPIChanges documentation built on April 3, 2025, 7:08 p.m.