Description Usage Arguments Value Examples
FLAME_bit
applies FLAME matching algorithm based on bit vectors.
The required arguments include (1) data and (2) holdout. The default model
for Match Quality is set to Ridge regression with 0.1 regularization parameter.
1 2 3 |
data |
input data |
holdout |
holdout training data |
tradeoff |
Match Quality tradeoff parameter (optional, default = 0.1) |
compute_var |
variance indicator (optional, default = FALSE) |
PE_function |
user defined function to compute predictive error (optional) |
model |
Linear, Ridge, or Lasso (optional) |
ridge_reg |
L2 regularization parameter if model = Ridge (optional) |
lasso_reg |
L1 regularization parameter if model = Lasso (optional) |
(1) list of covariates FLAME performs matching at each iteration, (2) Sizes, conditional average treatment effects (CATEs), and variance (if compute_var = TRUE) of matches at each iteration, (3) match quality at each iteration, and (4) the original data with additional column *matched*, indicating the number of covariates each unit is matched on. If a unit is never matched, then *matched* will be 0.
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.