IndexMemberSelection
derives the number of index members for the coming period based on an Information Criterion, e.g. AIC. The methodology is according to Trimborn and Haerdle (2018). The method derives the new weights according to the specifications of the weight reevaluation. The function expects the data period provided to be twice the number of months specified in derivation.period.ic. In case of a mismatch, a warning is given.
IndexMemberSelection(market, price, vol, weighting = "market",
weighting.all = "market", IC = "AIC", EvalSeq = c("Sequential", "AllTogether"),
optimum = c("local", "global"), start.const = 1, steps = 1, fixed.value = NULL,
derivation.period = 1, derivation.period.ic = 3, base.value = 1000, days.line)
An xts object with the market capitalization data. The default is NULL
, an entry is necessary if weighting is set to "market"
.
An xts object with the price data. An entry is always required.
An xts object with the trading volume (liquidity) data. The default is NULL
, an entry is necessary if weighting is set to "volume"
.
The weighting scheme to be applied. "market"
refers to weighting by market capitalization, "volume"
refers to weighting by trading volume.
The weighting scheme to be applied to the full market index. "market"
refers to weighting by market capitalization, "volume"
refers to weighting by trading volume.
Information Criterion to be used for the evaluation of the appropriate index to be used. Possible entries are "AIC"
, "GCV"
, "GFCV"
, "SH"
, "Cp"
and "FPE"
.
Indicates how the evaluation of the candidate indices by the IC shall be performed. "AllTogether"
evaluates all indices against each other, "Sequential"
evaluates always two consecutive indices against each other.
Define how to choose the optimal index. Either a "local"
optimum is chosen, thus the derivation stops the first time the results become worse under the chosen IC, or a "global"
optimum is chosen, thus all indices are derived and the best fitting one under the IC is chosen.
The number of constituents to start constructing the indices with. The default is 1
.
The step width for the number of constituents to construct the next index from. The default is 1
.
In case no IC for the number of constituents for the index shall be applied, give the number of constituents the index shall contain. In that case, "IC"
, "EvalSeq"
, "optimum"
, "start.const"
and "steps"
are inactive parameters. The default is NULL
.
The starting value for the index. The default is 1000
.
The number of month after which the weights of the index are reallocated. The default is 1
.
The number of month after which the composition of the index is derived again, thus the number of constituents is reevaluated. The default is 3
.
The days of the month to perform the recalculation on. Can be calculated from SwitchDates.
Returns the number of index members for application in the next period.
IndexMemberSelection
derives the number of index members for the coming period based on an Information Criterion, e.g. AIC. The methodology is according to Trimborn and Haerdle (2018). The method derives the new weights according to the specifications of the weight reevaluation. The function expects the data period provided to be twice the number of months specified in derivation.period.ic. In case of a mismatch, a warning is given. The data from the first period are used to derived the likelihood, the second period is used for out-of-sample derivation of the number of constituents. Hence for a 3 month reevaluation period, 6 month of data are required by this function. For more details, please see the methodology section of the paper Trimborn and Haerdle (2018).
Trimborn, S. and Haerdle, W.K. (2018). CRIX an Index for cryptocurrencies, Journal of Empirical Finance 49, pp. 107-122. https://doi.org/10.1016/j.jempfin.2018.08.004
# NOT RUN {
data(CryptoData)
price = price["2016-07-31::2017-01-31"]
market = market["2016-07-31::2017-01-31"]
vol = vol["2016-07-31::2017-01-31"]
days.line = SwitchDates(price, specificDate = "1")
IndexMemberSelection(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