Internal function called by hbal
to select ridge penalties through cross-validation.
crossValidate(
alpha = NULL,
penalty.pos = NULL,
penalty.val = NULL,
group.exact = NULL,
grouping = NULL,
folds = NULL,
treatment = NULL,
fold.co = NULL,
fold.tr = NULL,
coefs = NULL,
control = NULL,
constraint.tolerance = NULL,
print.level = NULL,
base.weight = NULL,
full.t = NULL,
full.c = NULL,
shuffle.treat = NULL
)
alpha, lambda
alpha. Controls degree of regularization.
positions of user-supplied penalties.
values of user-supplied penalties.
binary indicator of whether each covariate group should be penalized.
different groupings of the covariates.
number of folds to perform cross validation.
covariate matrix for treatment group.
fold assignments for control units.
fold assignments for treated units.
starting coefficients (lambda).
covariate matrix for control group.
tolerance level for imbalance.
details of printed output.
target weight distribution for the control units.
(unresidualized) ovariate matrix for treatment group.
(unresidualized) ovariate matrix for control group.
whether to create folds for the treated units
Yiqing Xu, Eddie Yang