calcCF: Calculate Cash Flow Vector for a trial

View source: R/aasim_functions.r

calcCFR Documentation

Calculate Cash Flow Vector for a trial

Description

This takes all the cash flows and combines them into a vector of values for a single trial. Each value in the vector represents a contribution (+) or withdrawal (-) for the year.

Usage

calcCF(sim, length, ageDeath1, ageDeath2, histInflation = 0)

Arguments

sim

sim(ulation) object

length

The number of years in that trial.

ageDeath1

age of death of person 1 if applicable

ageDeath2

age of death of person 2 if applicable

histInflation

If historical inflation is to be used, this should be a vector of 1 + inflation rates of length length

Value

vector of cash flows for a single trial

Examples

## Not run: calcCF(sim,10,82,91)

rexmacey/aasim documentation built on Sept. 18, 2024, 10:47 a.m.