View source: R/survival_qp.R View source: R/standardize.R
create_constraints | R Documentation |
Create the constraints for QP: l <= Ax <= u
Create the constraints for QP: l <= Ax <= u
create_constraints(
n,
trt,
times,
events,
t,
lowlim = 1,
uplim = NULL,
verbose = TRUE
)
create_constraints(
n,
trt,
times,
events,
t,
lowlim = 1,
uplim = NULL,
verbose = TRUE
)
n |
Number of individuals |
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 |
lowlim |
Lower limit on weights, default 1 |
uplim |
Upper limit on weights, default NULL |
verbose |
Whether to show messages, default T |
Xz |
list of J n x d matrices of covariates split by group |
target |
Vector of population means to re-weight to |
Z |
Vector of group indicators |
A, l, and u
A, l, and u
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.