calc_exprate: Calculate exponential growth rate

Description Usage Arguments Details Examples

Description

Calculate exponential growth rate

Usage

1
calc_exprate(p1, p2, t1, t2)

Arguments

p1

Value in period 1

p2

Value in period 2

t1

Time step for period 1 (i.e., 2010)

t2

Time step for period 2 (i.e., 2040)

Details

This function calculates an annualized exponential growth rate implied by measuring a value in two different time periods. Solves the elementary exponential growth equation,

p_2 = p_1 e^{r(t_2 - t_1)}

for r.

Examples

1
calc_exprate(10, 12, 2010, 2040)

pbsag/swimr documentation built on May 24, 2019, 10:39 p.m.