# triangular_moments_3: Compute the negatives moments (different from orders 1 and 2)... In AnnuityRIR: Annuity Random Interest Rates

## Description

Compute the negatives moments (different from orders 1 and 2) of the fitted triangular distribution of the random variable X.

## Usage

 `1` ```triangular_moments_3(data,order) ```

## Arguments

 `data` A vector X of interest rates. `order` The order of moment that should be computed.

## Author(s)

Salvador Cruz Rambaud, Fabrizio Maturo, Ana María Sánchez Pérez

## Examples

 ``` 1 2 3 4 5 6 7 8 9 10 11 12 13``` ```#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) triangular_moments_3(data,3) triangular_moments_3(data,4) # example 2 - first 10 negative moments of fitted triangular distribution #(an example from normal distributed simulated data) data<-rnorm(n=200,m=0.75,sd=0.2) triangular_parameters(data) first10negmoments=rep(NA,10) #except first and second for (i in 3:10) first10negmoments[i]=triangular_moments_3(data,i) first10negmoments ```

AnnuityRIR documentation built on Nov. 17, 2017, 4:23 a.m.