crscor {TSSS} | R Documentation |
Cross-Covariance and Cross-Correlation
Description
Compute cross-covariance and cross-correlation functions of the multivariate time series.
Usage
crscor(y, lag = NULL, outmin = NULL, outmax = NULL, plot = TRUE, ...)
Arguments
y |
a multivariate time series. |
lag |
maximum lag. Default is |
outmin |
bound for outliers in low side. A default value is -1.0e+30 for each dimension. |
outmax |
bound for outliers in high side. A default value is 1.0e+30 for each dimension. |
plot |
logical. If |
... |
graphical arguments passed to the |
Value
An object of class "crscor"
which has a plot
method. This is a
list with the following components:
cov |
cross-covariances. |
cor |
cross-correlations. |
mean |
mean vector. |
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)
y <- as.matrix(HAKUSAN[, 2:4]) # Rolling, Pitching, Rudder
crscor(y, lag = 50)
# The groundwater level and the atmospheric pressure
data(Haibara)
crscor(Haibara, lag = 50)
[Package TSSS version 1.3.4-5 Index]