getHorizons.sim: Get Time Horizons

View source: R/aasim_functions.r

getHorizons.simR Documentation

Get Time Horizons

Description

This will return the lengths of the cash flow and portfolio values vectors. Each of the vectors is 1 longer than the number of years in a trial because the first element represents the start (year 0).

Usage

getHorizons.sim(sim)

Arguments

sim

Sim(ulation) object

Value

List with three vectors. lengths is number of years + 1 in each trial; agesDeath1 are the ages at which the first person passes, agesDeath2 are the ages at which the second person passes.

Examples

## Not run: getHorizons(sim1)

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