Function to compute the variance bounds for Xnc
Variance_bounds(
Ldata,
Rdata,
out_var,
c_var,
nc_var,
constraint = NULL,
c_sign = NULL,
nc_sign = NULL,
projections = TRUE,
values,
sam0,
refs0,
nb_pts,
eps_default,
nbCores,
Bsamp = 2000,
weights_x = NULL,
weights_y = NULL,
outside = FALSE,
alpha = 0.05,
values_sel = NULL,
seed = 21
)
a list containing, in order: - ci : a list with all the information on the confidence intervals
- upper: upper bound of the confidence interval on betanc at level alpha, possibly with sign constraints
- lower: lower bound upper bound of the confidence interval on betanc, possibly with sign constraints
- unconstr: confidence interval on betanc, without sign constraints
- betac_ci: confidence intervals on each coefficients related to the common regressor, possibly with sign constraints
- betac_ci_unc: confidence intervals on each coefficients related to the common regressor without sign constraints
- point : a list with all the information on the point estimates
- upper: the upper bounds on betanc, possibly with sign constraints
- lower: the lower bounds on betanc, possibly with sign constraints
-unconstr: bounds on betanc without sign constraints
-betac_pt: bounds on betanc, possibly with sign constraints
-betac_pt_unc: bounds on betanc without sign constraints
dataset containing (Y,Xc) where Y is the outcome, Xc are potential common regressors
dataset containing (Xnc,Xc) where Xnc are the non commonly observed regressors, Xc are potential common regressors
label of the outcome variable Y.
label of the commonly observed regressors Xc.
label of the non commonly observed regressors Xnc.
vector of the size of X_c indicating the type of constraint if any on f(X_c) : "monotone", "convex", "sign", or "none". Default is NULL, no contraints at all.
sign restrictions on the commonly observed regressors: -1 for a minus sign, 1 for a plus sign, 0 otherwise. Default is NULL, i.e. no constraints.
sign restrictions on the non-commonly observed regressors Xnc: -1 for a minus sign, 1 for a plus sign, 0 otherwise. Default is NULL, i.e. no constraints.
if FALSE compute the identified set along some directions or the confidence regions. Default is FALSE.
the different unique points of support of the common regressor Xc.
the directions q to compute the radial function.
indicating the positions in the vector values corresponding to the components of betac.
the constant C in DGM for the epsilon_0, the lower bound on the grid for epsilon, taken equal to nb_pts*ln(n)/n. Default is 1 without regressors Xc, 3 with Xc.
If data_k =NULL, then epsilon is taken equal to eps_default.
number of cores for the parallel computation. Default is 1.
the number of bootstrap/subsampling replications. Default is 1000.
the sampling weights for the dataset (Xnc,Xc).
the sampling weights for the dataset (Y,Xc).
if TRUE indicates that the parallel computing has been launched outside of the function. Default is FALSE.
for the level of the confidence region. Default is 0.05.
the selected values of Xc for the conditioning. Default is NULL.
set a seed to fix the subsampling replications