Description Usage Arguments Details Value
Using the duration of a bullet and the durations of two assets, this function calculates the weighting necessary to hedge the risk in the bullet, assuming a flat yield curve. The durations can be Modified or Macaulay.
1 | barbell_weights(duration_bullet, duration_asset_1, duration_asset_2)
|
duration_bullet |
The bullet duration |
duration_asset_1 |
The first hedging asset's duration |
duration_asset_2 |
The second hedging asset's duration |
Only the weight of asset_1 is returned so that this function can be called
easily from a dplyr
workflow.
The weight of asset_1. The weight of asset_2 is simply (1 - weight_asset_1).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.