#
# Apply this function to random combination coefficients.
#
# The combination coefficients: comprised of two vectors each of length 3
# Note that 3 = 2^2 - 1, vectors need to be of length a power two minus 1
#
# x2, y2 are two time series
#
data(x2)
data(y2)
LCTS( c(rnorm(3), rnorm(3)), x2, y2)
#[1] 1.571728e-13
#
# The value of the test statistic is 1.57e-13
Run the code above in your browser using DataLab