get_weights_for_group_nonneg: Nonnegative-QP SBW group weights, with clipping diagnostics

View source: R/weights.R

get_weights_for_group_nonnegR Documentation

Nonnegative-QP SBW group weights, with clipping diagnostics

Description

Solves the same balance objective as get_weights_for_group_neg(), but constrained to nonnegative weights via quadratic programming.

Usage

get_weights_for_group_nonneg(data, X_n)

Arguments

data

Covariate data frame for the group (one treatment arm).

X_n

Target covariate mean to balance to.

Value

A list with w (numeric vector of weights), n_clipped, and max_abs_clipped (see .clip_weights()).


sbwadjust documentation built on Oct. 10, 2026, 5:08 p.m.