standardize_indirect_z: Re-weight population to group z's target

View source: R/standardize.R

standardize_indirect_zR Documentation

Re-weight population to group z's target

Description

Re-weight population to group z's target

Usage

standardize_indirect_z(
  focal_z,
  X,
  Z,
  lambda = 0,
  lowlim = 0,
  uplim = 1,
  scale_sample_size = F,
  verbose = TRUE,
  eps_abs = 1e-05,
  eps_rel = 1e-05,
  ...
)

Arguments

focal_z

Group to use as target

X

n x d matrix of covariates

Z

Vector of group indicators with J levels

lambda

Regularization hyper parameter, default 0

lowlim

Lower limit on weights, default 0

uplim

Upper limit on weights, default 1

scale_sample_size

Whether to scale the dispersion penalty by the sample size of each group, default T

verbose

Whether to show messages, default T

eps_abs

Absolute error tolerance for solver

eps_rel

Relative error tolerance for solver

...

Extra arguments for osqp solver

Value

  • weights Estimated primal weights as an n x J matrix

  • imbalance Imbalance in covariates as a d X J matrix


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