#The following examples using the database of financial time series
#collected during the United States bear market of 2007-2009.
# \donttest{
library(DFA)
data("NYA2008")
data("IXIC2008")
file = NYA2008
file2= IXIC2008
rhoDCCA(file,file2,scale = 2^(1/8),box_size = c(4,8,16),m=1)
# }
# \donttest{
# Example with different polynomial fit order.
library(DFA)
data("NYA2008")
data("LSE.L2008")
file = NYA2008
file2= LSE.L2008
rhoDCCA(file,file2,scale = 2^(1/8),box_size = c(4,8,16),m=2)
# }
# \donttest{
# Example using different choice of overlapping boxes sizes.
library(DFA)
data("NYA2008")
data("IXIC2008")
file = NYA2008
file2= IXIC2008
rhoDCCA(file,file2,scale = "F",box_size = c(4,8,16),m=1)
# }
Run the code above in your browser using DataLab