Learn R Programming

fChange (version 2.1.0)

cidr: Compute (Overnight) Cumulative Intraday Returns

Description

Compute (Overnight) Cumulative Intraday Returns

Usage

cidr(X)

ocidr(X)

Value

A dfts object with CIDR or OCIDRs

Arguments

X

A dfts object or data which can be automatically converted to that format. See dfts().

References

Rice, G., Wirjanto, T., & Zhao, Y. (2023). Exploring volatility of crude oil intraday return curves: A functional GARCH-X model. Journal of Commodity Markets, 32, 100361-.

Examples

Run this code
tmp <- dfts(SPYUS500$data[, 1:100],
  name = "SP500 100 Days",
  labels = SPYUS500$labels[1:100], fparam = SPYUS500$fparam
)
cidr(tmp)
tmp <- dfts(SPYUS500$data[, 1:100],
  name = "SP500 100 Days",
  labels = SPYUS500$labels[1:100], fparam = SPYUS500$fparam
)
ocidr(tmp)

Run the code above in your browser using DataLab