powered by
This function calculates the cross correlation between two time series.
Cal_Cross_Corr(ts1, ts2, max_lag)
A data frame.
a numeric vector of the first time series data.
a numeric vector of the second time series data.
maximum lag at which to compute cross-correlation.
Hossein hassani, Masoud yarmohammadi, Mohammad reza yeganegi and Leila Marvian Mashhad.
data(co2) data(sunspots) Cal_Cross_Corr(co2,sunspots,4)
Run the code above in your browser using DataLab