RcmdrPlugin.RiskDemo (version 3.2)

bondCurve: Drawing forward and yield curves

Description

This function draws forward and yields curves, for AAA-rated central governement bonds and/or all central governement bonds.

Usage

bondCurve(date1, date2 = NULL, yield = TRUE, forward = TRUE, 
  AAA = TRUE, all = TRUE, params)

Value

No value. Only a figure is produced.

Arguments

date1

The date for which the curves are drawn

date2

Optional second date for which the curves are drawn

yield

Is the yield curve shown (TRUE/FALSE)?

forward

Is the forward curve shown (TRUE/FALSE)?

AAA

Are the curves drawn for the AAA-rated bonds (TRUE/FALSE)?

all

Are the curves drawn for the bonds with all ratings (TRUE/FALSE)?

params

The data frame of curve parameters

Author

Arto Luoma

References

https://bit.ly/2zfs0G8

Examples

Run this code
data(params)
bondCurve(as.Date("2004-09-06"),params=params)

Run the code above in your browser using DataLab