View source: R/cointegration.r
Get the cointegration measure for a rolling windows of stocks.
1 2 | coint_measure(x, interval = minutes(5), dr = c("none", "svd", "nmf"),
dr_rank)
|
x |
an xts object of stock prices. |
interval |
the width of the cointegration window. |
dr |
the dimension reduction technique: "none", "svd", "nmf" |
dr_rank |
if dr is "svd" or "nmf" then this specifies the rank of the subspace to project onto. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.