Abstract
The aim of this paper is to design the package of the R statistical software called “Annuity Random Interest Rate”, referred hereinafter as AnnuityRIR, in order to calculate the value of an n-annuity with payments of one unit each when the interest rate is random. To do this, we have employed different approaches; the two main methodologies treated in this study consider that all non-central moments of the capitalization factor are known, or contrarily some of them are unknown. Consequently, five different approaches have been developed and the practical application of the proposed methods is reflected in this paper by pricing an annuity with a random risk-free interest rate during the last ten years. The version is available from CRAN: https://cran.r-project.org/web/packages/AnnuityRIR/index.html.