# NOT RUN {
data(CryptoData)
price = price["2014-03-31::2015-01-31"]
market = market["2014-03-31::2015-01-31"]
vol = vol["2014-03-31::2015-01-31"]
days.line = SwitchDates(price, specificDate = "1")
IndexComp(market = market, price = price, vol = vol, weighting = "market",
weighting.all = "market", IC = "AIC", EvalSeq = "Sequential", optimum = "local",
start.const = 5, steps = 5, days.line = days.line)
# }
Run the code above in your browser using DataLab