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

View source: R/stochastic_intervention.R

create_constraints_stochastic_intR Documentation

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

Description

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

Usage

create_constraints_stochastic_int(
  Xz,
  targetz,
  target_propz,
  sum_constraints,
  lowlim,
  uplim,
  exact_global,
  verbose
)

Arguments

Xz

length J list of n_j x d matrix of covariates for each group j

targetz

length J list of d-dimensional vectors of targets for each group j

target_propz

J-dimensional vector of group proportions in the target population

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

sum_constrains

J-dimenional vector of sum constraints

Value

A, l, and u


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