pricematurity: Plot the relationship between price and maturity of a bond.
Description
Function to Plot the relationship between price and maturity of a bond.
Usage
pricematurity()
Arguments
Value
A Plot of the reltionship between price and maturity of a bond.
Details
The user inputs are as follows:
Coupon rate (per cent p.a.)
Discount rate (or yield) p.a.
Moving the slider increases/decreases the values of the above two inputs.
Coupon frequency: chosen amongst quarterly, semi-annual and annual.
References
John C. Hull, "Options, Futures, and Other Derivatives", 8/E, Prentice Hall, 2012.