unicor {TSSS} | R Documentation |
Autocovariance and Autocorrelation
Description
Compute autocovariance and autocorrelation function of the univariate time series.
Usage
unicor(y, lag = NULL, minmax = c(-1.0e+30, 1.0e+30), plot = TRUE, ...)
Arguments
y |
a univariate time series. |
lag |
maximum lag. Default is |
minmax |
thresholds for outliers in low side and high side. |
plot |
logical. If |
... |
graphical arguments passed to the |
Value
An object of class "unicor"
which has a plot
method. This is a
list with the following components:
acov |
autocovariances. |
acor |
autocorrelations. |
acov.err |
error bound for autocovariances. |
acor.err |
error bound for autocorrelations. |
mean |
mean of |
tsname |
the name of the univariate time series |
References
Kitagawa, G. (2020) Introduction to Time Series Modeling with Applications in R. Chapman & Hall/CRC.
Examples
# Yaw rate, rolling, pitching and rudder angle of a ship
data(HAKUSAN)
Yawrate <- HAKUSAN[, 1]
unicor(Yawrate, lag = 50)
# seismic data
data(MYE1F)
unicor(MYE1F, lag = 50)
[Package TSSS version 1.3.4-5 Index]