This function takes in a n-by-p matrix of observed covariates, a length-n vector of treatment indicator, a caliper, and construct a possibly sparse list representation of the distance matrix with Mahalanobis distance. Note that this function is of limited interest to most users.
create_list_from_scratch_overall(
Z,
X,
exact = NULL,
soft_exact = FALSE,
p = NULL,
caliper_low = NULL,
caliper_high = NULL,
k = NULL,
penalty = Inf,
dist_func = NULL
)
This function returns a list of three objects: start_n, end_n, and d. See documentation of function ``create_list_from_mat'' for more details.
A length-n vector of treatment indicator.
A n-by-p matrix of covariates.
A vector of strings indicating which variables are to be exactly matched.
If set to TRUE, the exact constraint is enforced up to a large penalty.
A length-n vector on which a caliper applies, e.g. a vector of propensity score.
Size of caliper_inf.
Size of caliper_sup.
Connect each treated to the nearest k controls
Penalty for violating the caliper. Set to Inf by default.
A function used to calculate distance