Function to compute the main statistic for the point estimate
compute_ratio(
x_eps0,
Xp,
Yp,
for_critY,
dimXnc,
weights_xp,
weights_yp,
version = "first",
grid_I = NULL,
ties = FALSE
)
the value of the point estimate of the radial function using the DGM method.
a matrix containing the directions to compute the radial function, and the associated choice epsilon(q).
the observations of the noncommon regressor (possibly conditional on Xc).
the observations of the outcome variable.
the numerator of the ratio R for the point estimate of the radial function, on the grid grid_I;
the dimension of the noncommon regressors
the sampling or bootstrap weights for the dataset (Xnc,Xc).
the sampling or bootstrap weights for the dataset (Y,Xc).
version of the computation of the ratio, "first" indicates no weights, no ties, same sizes of the two datasets; "second" otherwise. Default is "second".
the grid of alpha on which we evaluate the ratio R to compute the point estimate of the radial function.
binary value handling the ties, default is FALSE.