R/tsx-data.R

#' S&P/TSX Composite index
#'
#' Data from Oxford-Man institute of the S&P/TSX Composite index from date "2002-05-02" to date "2021-02-24". 
#' Using close to close prices, log-retuns and realized variances are computed using formulas 
#' \eqn{r_t = log(P_{t})-log(P_{t-1})} and \eqn{rv_t = \sum_i r_{t,i}^2} where \eqn{r_{t,i}} stands 
#' for the intra-day log-returns of the date t and \eqn{P_t} stands for the price at day t.
#'
#' @docType data
#'
#' @usage data(tsx)
#'
#' @format Matrix of two columns where the first column is the log-returns and the second the realized variances.
#'
#' @keywords datasets
#'
#' @source \href{https://realized.oxford-man.ox.ac.uk/}{Oxford-Man Realized Library}
#'
#' @examples
#' \dontrun{
#' data(tsx)
#' }

"tsx"
Abdoulhaki/MDSV documentation built on July 6, 2024, 4:03 p.m.