This is an internal function. It calculates the criterion function for semiparametric estimation.
D(
ga,
b1,
b2,
b3,
Y,
Treat,
R,
u_grid = 0.02,
e_space,
t_tilde,
Nonseparable = TRUE
)
Returns the value of the criterion function for a given value of the parameter.
Parameter in the structural function.
Bandwidth for the local linear estimation of the conditional distribution of Y given T,R.
Bandwidth for the smoothing of the indicator function 1(Y <= y).
Bandwidth for the first-step conditional quantile estimation of T given R.
Outcome variable.
Treatment variable.
Running variable.
Grid length of the quantile space for numerical integration. The default is 0.02.
The space of epsilon on which the numerical integration is conducted.
Normalization constant in the parametric specification of the structural function.
Whether the structural function should be estimated as a separable or nonseparable function of the treatment. The default is TRUE.