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

View source: R/survival_qp.R View source: R/standardize.R

create_constraintsR Documentation

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

Description

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

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

Usage

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
)

Arguments

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

Value

A, l, and u

A, l, and u


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