log_growth_2: Estimate annualize growth modified

Description Usage Arguments Details

Description

See example_growth_trend in vignettes for usage. This makes an estimate even if there are only a couple actual data points.

Usage

1
log_growth_2(df, periods_year, y, x)

Arguments

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

Details

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


aranryan/arlodr documentation built on Oct. 8, 2020, 12:46 p.m.