Quantify the smoothness of a vector
Arguments
- x
Numeric vector (similar to a time series).
- method
Can be "diff" (the standard deviation of the standardized differences) or "cor" (default, lag-one autocorrelation).
- lag
An integer indicating which lag to use. If less than 1, will be interpreted as expressed in percentage of the length of the vector.
- iterations
The number of bootstrap replicates for computing standard errors. If
NULL
(default), parametric standard errors are computed.- ...
Arguments passed to or from other methods.