Description Usage Arguments Value
Iterate through different priced drugs in first stage percentage change estimation
1 | iterate_price(DT, form, price_change, B, price_var, x_main, x_int, quiet)
|
DT |
a data.table |
form |
formula, first stage formula |
price_change |
data.table of price changes by drugs |
B |
integer, number of bootstrap samples to use when calculating standard errors |
price_var |
character, name of price variable |
x_main |
character (default = "first_mo"), name of instrument |
x_int |
character vector, names of variables to interact instrument with |
quiet |
logical (default = FALSE), if TRUE then does not print progress |
data.table of first stage estimates by price of drug
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.