compute_ratio {RegCombin}R Documentation

Function to compute the main statistic for the point estimate

Description

Function to compute the main statistic for the point estimate

Usage

compute_ratio(
  x_eps0,
  Xp,
  Yp,
  for_critY,
  dimXnc,
  weights_xp,
  weights_yp,
  version = "first",
  grid_I = NULL,
  ties = FALSE
)

Arguments

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.

Value

the value of the point estimate of the radial function using the DGM method.


[Package RegCombin version 0.4.1 Index]