survival_qp | R Documentation |
Re-weight control sub-groups to treated sub-group means
survival_qp(
B_X,
trt,
times,
events,
t,
lambda = 0,
lowlim = 0,
uplim = NULL,
verbose = TRUE,
eps_abs = 1e-05,
eps_rel = 1e-05,
...
)
B_X |
n x k basis matrix of covariates |
trt |
Vector of treatment assignments |
times |
Vector of event/censoring times (see events for if event or censoring time) |
events |
Vector of boolean censoring indicators (whether individual was censored) |
t |
Time |
lambda |
Regularization hyperparameter, default 0 |
lowlim |
Lower limit on weights, default 1 |
uplim |
Upper limit on weights, default NULL |
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 |
weightsEstimated weights as a length n vector
imbalance0Imbalance in covariates for control in vector
(imbalance1)Imbalance in covariates for treated in vector
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.