compute rolling growth rates

compute_rolling_growth_rates(data, window_width)

Arguments

data

data frame with columns `region`, `total` and `d` to compute rolling growth rates by region using the total variable at time steps d

window_width

of window for rolling fit

Value

the original data frame with added columns `slope` (growth rate), `slope_e` (standard error of growth rate fit), `low` and `high` (the 95