2
$\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$
  • $\begingroup$ Have you looked at RQuantLib? $\endgroup$ – Helin Nov 23 '17 at 23:50
  • $\begingroup$ @HelinGai Yes but I can't seem to find anything on duration and convexity $\endgroup$ – Stoner Nov 24 '17 at 0:19
  • 2
    $\begingroup$ rdrr.io/cran/RQuantLib/man/FixedRateBond.html $\endgroup$ – Helin Nov 24 '17 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 Nov 24 '17 at 9:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.