powered by
Theil Sen Slope Estimator
theil_sen(x, y, ...)# S3 method for theil_sen slope(x, ...)# S3 method for theil_sen intercept(x, ...)
# S3 method for theil_sen slope(x, ...)
# S3 method for theil_sen intercept(x, ...)
object of class Theil_Sen.
Theil_Sen
time vector (numeric, or Date).
numeric
Date
numeric value.
further arguments passed to or from other methods.
slope(theil_sen): Extract slope.
slope(theil_sen)
intercept(theil_sen): Extract intercept.
intercept(theil_sen)
https://en.wikipedia.org/wiki/Theil-Sen_estimator
# create theil_sen object ts <- theil_sen(1:5, c(1, 2, 3, 5, 9)) # get slope slope(ts) # get intercept intercept(ts)
Run the code above in your browser using DataLab