3
$\begingroup$

A soft question:

Are there any existing packages in R that allows one to compute the modified duration and convexity of bonds in R? If there isn't, how can one go about doing so (with formulas) with the appropriate bond data obtained?

$\endgroup$
4
  • $\begingroup$ Have you looked at RQuantLib? $\endgroup$
    – Helin
    Commented Nov 23, 2017 at 23:50
  • $\begingroup$ @HelinGai Yes but I can't seem to find anything on duration and convexity $\endgroup$
    – Stoner
    Commented Nov 24, 2017 at 0:19
  • 3
    $\begingroup$ rdrr.io/cran/RQuantLib/man/FixedRateBond.html $\endgroup$
    – Helin
    Commented Nov 24, 2017 at 1:17
  • 1
    $\begingroup$ Thanks @HelinGai! But what about convexity calculation? Is there also a package for it, or I just have to compute it by "brute force" - i.e. formulas? $\endgroup$
    – Stoner
    Commented Nov 24, 2017 at 9:20

0