index.trend: Interannual trend

View source: R/index.trend.R

index.trendR Documentation

Interannual trend

Description

Computes slope and significance of the interannual linear trend

Usage

index.trend(ts, dates, output = c("coef", "sig"), sig.level = 0.95)

Arguments

ts

A vector containing the data

dates

A character (or POSIXct) vector following the format “YYYY-MM-DD” (i.e., format = "%Y-%m-%d" as in strptime). This is directly passed by the VALUE objects (either stations or predictions) through the element object$Dates$start.

output

Desired output. The options are "coef" for the slope coefficient (default) or "sig", which is a binary value indicating whether the slope coefficient is significant (1) or not (0) at the given sig.level.

sig.level

Significance level. Default to 0.95.

Value

A numeric value with either the slope coefficient (for output = "coef") or whether it is significant (1) or not (0) (output = "sig") at the specified sig.level

Author(s)

J Bedia


SantanderMetGroup/R_VALUE documentation built on July 4, 2023, 4:27 a.m.