PortfolioDuration: Modified Duration of a Bond Portfolio

Description Usage Arguments Value

Description

Calculates the Duration of a Bond portfolio with the id's of the instruments and it's weights on the portfolio.

Usage

1
PortfolioDuration(date = Sys.Date() - 1, instruments, weight)

Arguments

date

is the date in which the Portfolio Duration is going to be calculated.

instruments

is an array containing the instrument's id.

weight

is an array containing the instrument's weights in the portfolio.

Value

Modified Duration of the Portfolio.


CIAssetManagement/FundTools documentation built on May 3, 2019, 4:30 p.m.