theil_sen | R Documentation |
Theil Sen Slope Estimator
theil_sen(x, y, ...) ## S3 method for class 'theil_sen' slope(x, ...) ## S3 method for class 'theil_sen' intercept(x, ...)
x |
time vector ( |
y |
numeric value. |
... |
further arguments passed to or from other methods. |
object of class Theil_Sen
.
slope(theil_sen)
: Extract slope.
intercept(theil_sen)
: Extract intercept.
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.