Description Usage Arguments Details Examples

Calculate exponential growth rate

1 | ```
calc_exprate(p1, p2, t1, t2)
``` |

`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) |

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*.

1 | ```
calc_exprate(10, 12, 2010, 2040)
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.