Description Usage Arguments Value References
Provided with futures contract front price data from Bloomberg retrieved with pullit, construct term structure factor. The futures term structure factor \insertCiteszymanowska_anatomy_2014,fuertes_commodity_2015factorem is concerned with the shape (steepness) of the futures term structure and sorts on roll yield.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | TS_factor(
data,
update_frequency = "month",
return_frequency = "day",
front = 1L,
back = 2L,
ranking_period = 1L,
long_threshold = 0.5,
short_threshold = 0.5,
weighted = F
)
## S4 method for signature 'FuturesTS'
TS_factor(
data,
update_frequency = "month",
return_frequency = "day",
front = 1L,
back = 2L,
ranking_period = 1L,
long_threshold = 0.5,
short_threshold = 0.5,
weighted = F
)
|
data |
an S4 object of class |
update_frequency |
a scalar |
return_frequency |
a scalar |
front |
a scalar |
back |
a scalar |
ranking_period |
a scalar |
long_threshold |
a scalar |
short_threshold |
a scalar |
weighted |
a scalar |
An S4 object of class AssetPricingFactor
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.