min_trend: Trend of minimum value

View source: R/min_trend.R

min_trendR Documentation

Trend of minimum value

Description

Calculates minimum Value for every year since the begin of the measurements. Uses least squares approach with a higher uncertainity and Sen-Sloap approach with "Yuepilon" PreWhitening (zyp-package).

Usage

min_trend(data, station, mod = 1)

Arguments

data

list; contains all stations that the discharge analysis should consider. List can be created by grdc_list. Each entry of the list contains the existing discharge measurements (as numeric) and the corresponding dates (as character) for the station.

station

character; Name of the station. Must equal one entry of the data list.

mod

numeric; possible input: 1,2,3. default value: 1; output of both: zyp.trend.vector, lm. Defines the way to calculate intercept and slope. For mod=2 zyp.trend.vector with PreWhitening by "yuepilon-method" is used. Sen-Slope-Approach used to define direction of the trend and the significance is determined by Kendall's P-Value computed for the final detrendet time series. For mod=3: lm with a least squares approach is used.

Value

list

intercept_zyp

intercept created by zyp.trend.vector

slope_zyp

slope created by zyp.trend.vector

sig_zyp

significance (Kendall's P-Value) for the final detrended time-series

intercept_ls

intercept created by lm

slope_ls

slope created by lm

Examples

## Not run:  min_trend(mosel, "TRIER UP")

maibrittbergh/dischanalyst documentation built on May 13, 2022, 1:52 a.m.