TSSS (version 1.2.3)

crscor: Cross-Covariance and Cross-Correlation

Description

Computes 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 \(2 \sqrt{n}\), where \(n\) is the length of the time series y.

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 TRUE (default), cross-correlations are plotted.

further arguments to be passed to plot.crscor.

Value

An object of class "crscor", which is a list with the following elements:

cov

cross-covariances.

cor

cross-correlations.

mean

mean.

References

Kitagawa, G. (2010) Introduction to Time Series Modeling. Chapman & Hall/CRC.

Examples

Run this code
# NOT RUN {
# 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)
# }

Run the code above in your browser using DataLab