moment {AnnuityRIR} | R Documentation |
Compute the exact moments of a distribution.
Description
Compute the exact moments of a distribution.
Usage
moment(x,order,central, absolute, na.rm)
Arguments
x |
A vector X of interest rates. |
order |
The order of moment that should be computed. Default is 1. |
central |
If central moments are to be computed. Default is "FALSE". |
absolute |
If absolute moments are to be computed. Default is "FALSE". |
na.rm |
If missing values should be removed. Default is "FALSE". |
Author(s)
Salvador Cruz Rambaud, Fabrizio Maturo, Ana María Sánchez Pérez
Source
Cruz Rambaud, S.; Maturo, F. and Sánchez Pérez A. M. (2015): “Approach of the value of an annuity when non-central moments of the capitalization factor are known: an R application with interest rates following normal and beta distributions”. Ratio Mathematica, 28(1), pp. 15-30. doi: 10.23755/rm.v28i1.25.
Examples
#example 1
data=c(1.77,1.85,1.85,1.84,1.84,1.83,1.85,1.85,1.88,1.85,1.80,1.84,1.91,1.85,1.84,1.85,
1.86,1.85,1.88,1.86)
moment(data,3)
[Package AnnuityRIR version 1.0-0 Index]