log_growth_2 | R Documentation |
See example_growth_trend in vignettes for usage. This makes an estimate even if there are only a couple actual data points.
log_growth_2(df, periods_year, y, x)
periods_year |
the number of periods in a year, e.g. 4 for quarters or 365.25 for days. This will convert the slope coefficient to an annualized growth rate by doing ((1 + estimate) ^ periods_year - 1) |
y |
character vector naming dependent variable |
x |
character vector naming independent variable |
Same as log_growth_1, but modified to allow refering to columns by name as arguments, rather than requiring that they be named x and y
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.