View source: R/overlap_weights.R
maxsubset_weights | R Documentation |
Find maximum effective sample size balanced set
maxsubset_weights(
X,
trt,
lambda = 0,
lowlim = 0,
uplim = 1,
verbose = TRUE,
eps_abs = 1e-05,
eps_rel = 1e-05,
...
)
X |
n x d matrix of covariates |
trt |
Vector of treatment assignments |
lambda |
Regularization hyper parameter, default 0 |
lowlim |
Lower limit on weights, default 0 |
uplim |
Upper limit on weights, default 1 * number of treated/control units |
verbose |
Whether to show messages, default T |
eps_abs |
Absolute error tolerance for solver |
eps_rel |
Relative error tolerance for solver |
... |
Extra arguments for osqp solver |
weights Estimated weights as a length n vector
imbalance Imbalance in covariates as a d X J matrix
global_imbalanceOverall imbalance in covariates, as a length d vector
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.