create_constraints_mundlak | R Documentation |
Create the constraints for QP: l <= Ax <= u
create_constraints_mundlak(
ind_covs,
interact_covs,
trt,
Z,
lowlim,
uplim,
exact_global,
verbose
)
ind_covs |
n x d1 matrix of covariates for individual units |
interact_covs |
n x d2 matrix of interactions between individual and cluster covariates |
trt |
Vector of treatment assignments |
Z |
Vector of group indicators with J levels |
lowlim |
Lower limit on weights |
uplim |
Upper limit on weights |
exact_global |
Boolean whether to include an exact global constraint |
verbose |
Boolean whether to display progress |
A, l, and u
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.