Description Usage Arguments Value
Calculate year 1/2 differences
1 | calc_year_1_2_diff(DT, id_vars, time_var, year1_id, year2_id)
|
DT |
data.table with id_vars, time_var, and year 1/2 utilization variables |
id_vars |
character vector, names of id variables |
time_var |
character, name of time variable |
year1_id |
character, value of time_var for year 1 observations |
year2_id |
character, value of time_var for year 2 observations |
data.table of year 1/2 differences
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.