findDur: Find duration/maturity given interest rate and...

Description Usage Arguments Value

View source: R/core.R

Description

Calculates the desired value given basic inputs. findDur_ClosedForm(), findMaxDur(), and findMaxMat are various closed-form approximations, whereas findDur and findMat are exact.

Usage

1
2
findDur(mat, i, market.rate = NA, f = 0.5, type = "modified", ...)
findMat(dur,i,f=.5)

Arguments

mat

Maturity

dur

Duration

i

Interest rate

market.rate

Market rate under which to evaluate mat/dur

f

Frequency of coupon payments

type

For findDur: "modified" currently the only option. For findDur_ClosedForm: "pianca", "macaulay", or "hawawini"

...

Pass-alongs.

Value

Returns a numeric value with the maturity/duration as described


maRketSim documentation built on May 29, 2017, 10:54 p.m.