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

View source: R/mundlak.R

create_constraints_mundlakR Documentation

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

Description

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

Usage

create_constraints_mundlak(
  ind_covs,
  interact_covs,
  trt,
  Z,
  lowlim,
  uplim,
  exact_global,
  verbose
)

Arguments

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

Value

A, l, and u


ebenmichael/balancer documentation built on Feb. 21, 2025, 7:50 a.m.