theil_sen_slope: Theil-Sen slope with time

View source: R/theil_sen_slope.R

theil_sen_slopeR Documentation

Theil-Sen slope with time

Description

Theil-Sen slope with time

Usage

theil_sen_slope(y, x = 1:length(y))

Arguments

y

numeric, a time series

x

numeric, the time points of the time series (optional, defaults to 1, 2, ...)

Value

the Theil-Sen slope, a number

Author(s)

Ken Butler, butler@utsc.utoronto.ca

Examples

theil_sen_slope(c(2,3,5,10))
theil_sen_slope(y = c(2,3,5,10), x = 1:4)
theil_sen_slope(y = c(2,3,5,10), x = c(1, 2, 3, 5))


nxskok/mkac documentation built on Jan. 15, 2024, 4:02 a.m.