R/PV_post_exact.R

Defines functions PV_post_exact

Documented in PV_post_exact

PV_post_exact=function(data,years=10){
X=data
U=1+X
n=years
a=rep(NA,n)
for (i in 1:n) a[i]=moment(U, central = FALSE, absolute = FALSE, order =-i)
PV=sum(a)
return(PV)
}
fabriziomaturo/AnnuityRIR documentation built on May 28, 2019, 8:38 p.m.