priceyield: Plot the relationship between price and yield of a bond.
Description
Function to Plot the relationship between price and yield of a bond.
Usage
priceyield()
Arguments
Value
A Plot of the reltionship between price and yield of a bond.
Details
The user inputs are as follows:
Coupon rate (per cent p.a.)
Maturity (yrs)
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.