smoothness | R Documentation |
Quantify the smoothness of a vector
smoothness(x, method = "cor", lag = 1, iterations = NULL, ...)
x |
Numeric vector (similar to a time series). |
method |
Can be |
lag |
An integer indicating which lag to use. If less than |
iterations |
The number of bootstrap replicates for computing standard
errors. If |
... |
Arguments passed to or from other methods. |
Value of smoothness.
https://stats.stackexchange.com/questions/24607/how-to-measure-smoothness-of-a-time-series-in-r
x <- (-10:10)^3 + rnorm(21, 0, 100)
plot(x)
smoothness(x, method = "cor")
smoothness(x, method = "diff")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.