FixedRateBondYield
function calculates the theoretical yield of a fixed rate bond from its price## S3 method for class 'default':
FixedRateBondYield( settlementDays=1, price, faceAmount,
effectiveDate, maturityDate,
period, calendar="us",
rates, dayCounter=2,
businessDayConvention=0,
compound = 0, redemption=100,
issueDate)## S3 method for class 'Bond':
plotundefined
## S3 method for class 'Bond':
printundefined
## S3 method for class 'Bond':
summaryundefined
us
or uk
FixedRateBondYield
function returns an object of class
FixedRateBondYield
(which inherits from class
Bond
). It contains a list with the following
components:QuantLib
. FixedRateBondYield(,90, 100000, as.Date("2004-11-30"), as.Date("2008-11-30"), 3, , c(0.02875), , , , ,as.Date("2004-11-30"))
Run the code above in your browser using DataLab