Learn R Programming

sstModel (version 1.0.0)

initialSpread: Compute Initial Spread

Description

compute initial spread of a bond from its market value.

Usage

initialSpread(market.value, times, coupons, risk.free, ...)

Arguments

market.value

a numeric value, the total market value for the bond.

times

a numeric vector, the times of the coupons.

coupons

a numeric vector, the corresponding coupon cash flows.

risk.free

a numeric vector, the corresponding risk-free rates with continuous compounding.

...

additional parameters to be passed to newtonRaphson.

Value

a numeric value, the corresponding spread.