Description Usage Arguments Value Examples
A function that calculates individual weights by year.
1 | add_weights(tbl, id_var = "id", t_var = "year", x_var, w_var = "w")
|
tbl |
A tbl of panel data; id “'id“', year “'year“' |
w_var |
The (quoted or unquoted) name of the weight variable to create. |
A tbl of panel data with weights applied.
1 2 3 | asm <- fakedata::fake_panel(N = 10, T = 15, I = 2)
add_weights(asm)
add_weights(asm, id, year, w)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.