Cal_Cross_Corr {ADTSA} | R Documentation |
Calculation of Cross-Correlation
Description
This function calculates the cross correlation between two time series.
Usage
Cal_Cross_Corr(ts1, ts2, max_lag)
Arguments
ts1 |
a numeric vector of the first time series data. |
ts2 |
a numeric vector of the second time series data. |
max_lag |
maximum lag at which to compute cross-correlation. |
Value
A data frame.
Author(s)
Hossein hassani, Masoud yarmohammadi, Mohammad reza yeganegi and Leila Marvian Mashhad.
Examples
data(co2)
data(sunspots)
Cal_Cross_Corr(co2,sunspots,4)
[Package ADTSA version 1.0.1 Index]