Description Usage Arguments Value Examples
A function that calculates quantiles in panel data
1 | add_quantiles(tbl, alpha = 0.025, t_var = "year", g_var)
|
tbl |
A tbl of panel data; id “'id“', year “'year“', g_var |
alpha |
Defines the alpha [lower] and (1-alpha) [upper] quantiles to calculate. |
g_var |
The (quoted or unquoted) name of the growth rate variable to calculate the quantiles for. |
A tbl of panel data with quantiles added (named 'low' and 'high')
1 2 | asm <- fakedata::fake_panel(N = 10, T = 15)
asm %>% add_quantiles(alpha = 0.05, g_var = 'g')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.