Description Usage Arguments Value References Examples
switchDates
derives the dates on which the index constituents are going to be reevaluated.
1 | switchDates(price, specificDate = NULL, WeekDay = NULL, Appearance = 1)
|
price |
An xts object with the price data. An entry is always required. |
specificDate |
A specific date of each month on which the index members get reevaluated. A common date would be the 1st of each month or the 15th of each month. |
WeekDay |
Only active when |
Appearance |
Defines if the 1st, 2nd or another appearance of a weekday gets returned. E.g. the 3rd Friday of each month can be returned. Only active when |
A vector of class date with the respective dates on which the index members become reevaluated. This is a necessary input to IndexComp
.
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
1 2 3 | data(CryptoData)
switchDates(price, specificDate = "1")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.