View source: R/foc_membership.R
foc_membership | R Documentation |
From the active basis, we derive the FOC conditions. If a data set satisfies the FOC conditions, then we know that the coefficients obtained from this active basis solve the IQR problem for this data set.
foc_membership( h, Y_subsample, X_subsample, D_subsample, Phi_subsample, tau, beta_D = h_to_beta(h, Y = Y_subsample, X = X_subsample, D = D_subsample, Phi = Phi_subsample)$beta_D, beta_X = h_to_beta(h, Y = Y_subsample, X = X_subsample, D = D_subsample, Phi = Phi_subsample)$beta_X )
h |
Indices of the active basis written in terms of the subsample data (p-dimensional vector) |
Y_subsample |
Outcome vector in the subsample (m by 1 matrix) |
X_subsample |
Covariates in subsample (m by p_X matrix) |
D_subsample |
Endogeneous variables in subsample (m by p_D matrix) |
Phi_subsample |
Transformed instruments in subsample (m by p_Phi) |
tau |
Quantile (numeric) |
beta_D |
Coefficients on the endogeneous variable; ideally obtained
from |
Named list
status
: TRUE if subsample satisfies FOC conditions; FALSE
otherwise
xi
: vector that must be contained within -tau and 1-tau to
satisfy FOC conditions
Other mcmc_subsampling:
foc_membership_v2()
,
h_to_beta()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.