Description Usage Arguments Value
View source: R/year_1_2_diff.R
Estimate the first stage of likelihood that people with a year 2 usage amount had a specific usage amount in year 1
1 | estimate_year_1_2_diff(DT, grid, year1_var, year2_var, x_main, x_int)
|
DT |
data.table |
grid |
data.table with combinations of jan/dec amounts |
year1_var |
character, name of the column of the year 1 usage amount |
year2_var |
character, name of the column of the year 2 usage amount |
x_main |
character, |
x_int |
character vector, |
data.table with first stage estimates for each combination in grid
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.