compute_rolling_growth_rates: compute rolling growth rates

View source: R/helpers.R

compute_rolling_growth_ratesR Documentation

compute rolling growth rates

Description

compute rolling growth rates

Usage

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


mountainMath/CanCovidData documentation built on July 29, 2022, 1:41 p.m.