spi_week: Compute the Standardized Precipitation Index.

Description Usage Arguments Details Value Author(s)

View source: R/spi-rain.R

Description

spi_week computes the weekly spi index with gamlss models. It can also with work with precipitation series containing NA, 0 or only non-zero values.

Usage

1
2
spi_week(rain, tscale = 1, period = 365/7, package = "gamlss",
  plot = FALSE)

Arguments

rain

Precipitation level.

tscale

Time-scale to compute the SPI in week units.

period

Period (e.g. 53 weeks) defined to model the seasonal effect.

package

Package to use. gamlss for backfitting and bamlss for baysian gamlss models.

plot

Logical value indicating if a plot should be draw or not.

Details

details.

Value

dataframe consisting of spi, mu, sigma and pzero.

Author(s)

Erick A. Chacon-Montalvan


ErickChacon/day2day documentation built on May 6, 2019, 4:03 p.m.