compute initial spread of a bond from its market value.
initialSpread(market.value, times, coupons, risk.free, ...)
a numeric value, the total market value for the bond.
a numeric vector, the times of the coupons.
a numeric vector, the corresponding coupon cash flows.
a numeric vector, the corresponding risk-free rates with continuous compounding.
additional parameters to be passed to newtonRaphson
.
a numeric value, the corresponding spread.