Description Usage Arguments Value Author(s) Examples
View source: R/ldhmm-oxford_man_ts.R
This utility returns the time series from the specific column in Oxford-Man Realized data set.
1 2 | ldhmm.oxford_man_ts(symbol, column, log = FALSE, to.vol = FALSE,
days.pa = 252)
|
symbol |
character, specify the index name, e.g. ".SPX". |
column |
character, the column name, e.g. "rv5". |
log |
logical, take one plus log to convert return to log-return. Default is |
to.vol |
logical, take |
days.pa |
a positive integer specifying number of days to annualize volatility. Default is 252. |
an xts object containing the time series, with dates as index
Stephen H. Lihn
1 2 3 4 | ## Not run:
vol <- ldhmm.oxford_man_ts(".SPX", "rv5", to.vol=TRUE)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.