Compute Binary Bets Takes predictions and creates lagged -1, 0, 1 values based on sign.
1 2 | compute_bets(x, position = c("longshort", "long", "short", "alwayslong",
"alwaysshort"))
|
x |
An 'xts' object containing predictions. |
position |
Character for whether to return
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.