compute_rolling_growth_rates | R Documentation |
compute rolling growth rates
compute_rolling_growth_rates(data, window_width)
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 |
the original data frame with added columns 'slope' (growth rate), 'slope_e' (standard error of growth rate fit), 'low' and 'high' (the 95
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.