R/plot_FV_pre_norm_kmom.R

Defines functions plot_FV_pre_norm_kmom

Documented in plot_FV_pre_norm_kmom

plot_FV_pre_norm_kmom=function(data,years=10,lwd=1.5,lty=1){

appo=rep(NA,years)
for (i in 1:years) {
  appo[i]=FV_pre_norm_kmom(data,i)
}
anni=c(1:years)
plot(appo,type="b",col="red",lwd=lwd, lty=lty, xlim=c(0,years+1),ylim=c(min(appo),max(appo)),xlab="Time", ylab="Final Expexted Value",main="Final Expected Value (annuity-due)")
if (length(anni)<20) text(anni+0.2, appo, round(appo, 2), cex=0.7)

 }

Try the AnnuityRIR package in your browser

Any scripts or data that you put into this service are public.

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