interpolate_exponential: Exponentially interpolate around two data points

Description Usage Arguments Details See Also Examples

View source: R/helper_functions.R

Description

Exponentially interpolate around two data points

Usage

1
interpolate_exponential(p1, p2, t1, t2, t0)

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)

t0

The timepoint for interpolation (or extrapolation)

Details

This function first calculates the implied exponential growth rate between two points, and then predicts where the function would be in the intermediate year.

See Also

calc_exprate

Examples

1
2
interpolate_exponential(10, 12, 2010, 2040, 2020)
interpolate_exponential(10, 12, 2010, 2040, 2008)

pbsag/swimr documentation built on Dec. 12, 2020, 3:08 a.m.