calcCFSub: Calculate A Cash Flow Vector

View source: R/aasim_functions.r

calcCFSubR Documentation

Calculate A Cash Flow Vector

Description

This takes a single cash flow description and creates a numeric vector. These vectors can be combined to create a net flow for each trial.

Usage

calcCFSub(cf, sim, length, ageDeath1, ageDeath2, histInflation = 0)

Arguments

cf

description of a cash flow.

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 with length length

Value

vector of cash flows

Examples

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

rexmacey/aasim documentation built on Oct. 29, 2024, 9:30 a.m.