Description Usage Arguments Value Examples
A function that calculates individual growth rates.
1 2 | add_growth_rates(tbl, id_var = "id", t_var = "year", x_var, g_var = "g",
drop = FALSE)
|
tbl |
A tbl of panel data; id “'id“', year “'year“' |
g_var |
The (quoted or unquoted) name of the growth rate variable to create. |
A tbl of panel data with growth rates applied.
1 2 3 4 | asm <- fakedata::fake_panel(N = 10, T = 15) %>% select(-g)
add_growth_rates(asm)
add_growth_rates(asm, g_var = 'g_it')
add_growth_rates(asm, g_var = g_it)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.