FixedRateBondPriceByYield
function calculates the theoretical price of a fixed rate bond from its yield## S3 method for class 'default':
FixedRateBondPriceByYield( settlementDays=1, yield, 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
FixedRateBondPriceByYield
function returns an object of class
FixedRateBondPriceByYield
(which inherits from class
Bond
). It contains a list with the following
components:QuantLib
. FixedRateBondPriceByYield(,0.0307, 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