Compute autocovariance and autocorrelation function of the univariate time series.
unicor(y, lag = NULL, minmax = c(-1.0e+30, 1.0e+30), plot = TRUE, …)
a univariate time series.
maximum lag. Default is \(2 \sqrt{n}\), where \(n\) is the length of the time series y.
y
bound for outliers in low side and high side.
logical. If TRUE (default), autocorrelations are plotted.
TRUE
further arguments to be passed to plot.unicor.
plot.unicor
An object of class "unicor", which is a list with the following elements:
"unicor"
autocovariances.
autocorrelations.
error bound for autocovariances.
error bound for autocorrelations.
mean of y.
the name of the univariate time series y.
Kitagawa, G. (2010) Introduction to Time Series Modeling. Chapman & Hall/CRC.
# NOT RUN { # 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) # }
Run the code above in your browser using DataLab