# \donttest{
# Estimate self-similarity of a very known time series available on R base: the sunspot.year.
# Then the spend time with each method is compared.
library(DFA)
SSP(sunspot.year, scale = 2)
SSP(sunspot.year, scale = 1.2)
time1 = system.time(SSP(sunspot.year, scale = 1.2))
time2 = system.time(SSP(sunspot.year, scale = 2))
time1
time2
# }
Run the code above in your browser using DataLab