bondPrice: Estimate price of bond

Description Usage Arguments Value Author(s) Examples

Description

This function calculates the price of a fixed rate coupon bond given the discount curve and bond data. First it converts the discountCurve into CF

Usage

1
bondPrice(bond, discountCurve)

Arguments

bond

a bondSpec object

discountCurve

vector of discount rates

Value

price of the bond

Author(s)

Thomas Fillebeen

Examples

1
2
3
4
time = seq(from=0.5, to=2, by=0.5)
bond = bondSpec(time, face=100, m=2, couponRate = 0.0475)
DF = rbind(0.968,0.9407242,0.9031545,0.8739803)
price = bondPrice(bond,DF)

GARPFRM documentation built on May 2, 2019, 5:45 p.m.

Related to bondPrice in GARPFRM...