gridsearch | R Documentation |
For each set of beta_D
suggested by grid
, compute the
sum of the absolute values of beta_Z
gridsearch(grid, Y, X, D, Z, tau, update = round(nrow(grid)/20), ...)
grid |
Data frame with p_D columns where each row is a set of
|
Y |
Dependent variable (vector of length n) |
X |
Exogenous variable (including constant vector) (n by p_X matrix) |
D |
Endogenous variable (n by p_D matrix) |
Z |
Instrumental variable (n by p_Z matrix) |
tau |
Quantile of interest (numeric between 0 and 1) |
update |
Send progress after every |
... |
Arguments to be passed to |
This code is not run in parallel.
A data frame of dimension nrow(grid)
by p_D + p_Z + 1 where
each row corresponds to one set of coordinate values on the grid, the
corresponding values for the instrument coefficient, and the resulting
IQR objective
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.