create_constraints_cluster: Create the constraints for QP: l <= Ax <= u

View source: R/clustered_weights.R

create_constraints_clusterR Documentation

Create the constraints for QP: l <= Ax <= u

Description

Create the constraints for QP: l <= Ax <= u

Usage

create_constraints_cluster(
  ind_covs,
  clus_covs,
  trt,
  clusters,
  lowlim,
  uplim,
  verbose
)

Arguments

ind_covs

n x d1 matrix of covariates for individual units

clus_covs

n x d2 matrix of covariates for clusters

trt

n vector of treatment assignment

lowlim

Lower limit on weights

uplim

Upper limit on weights

verbose

Whether to show messages

Value

A, l, and u


ebenmichael/balancer documentation built on Jan. 17, 2024, 2:56 p.m.