View source: R/compute_ratio.R
compute_ratio | R Documentation |
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
)
x_eps0 |
a matrix containing the directions to compute the radial function, and the associated choice epsilon(q). |
Xp |
the observations of the noncommon regressor (possibly conditional on Xc). |
Yp |
the observations of the outcome variable. |
for_critY |
the numerator of the ratio R for the point estimate of the radial function, on the grid grid_I; |
dimXnc |
the dimension of the noncommon regressors |
weights_xp |
the sampling or bootstrap weights for the dataset (Xnc,Xc). |
weights_yp |
the sampling or bootstrap weights for the dataset (Y,Xc). |
version |
version of the computation of the ratio, "first" indicates no weights, no ties, same sizes of the two datasets; "second" otherwise. Default is "second". |
grid_I |
the grid of alpha on which we evaluate the ratio R to compute the point estimate of the radial function. |
ties |
binary value handling the ties, default is FALSE. |
the value of the point estimate of the radial function using the DGM method.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.