check_args_treatment_kernel: Check that data is in right shape and hyparameters are...

View source: R/standardize_treatment_kernel.R

check_args_treatment_kernelR Documentation

Check that data is in right shape and hyparameters are feasible

Description

Check that data is in right shape and hyparameters are feasible

Usage

check_args_treatment_kernel(
  X0,
  Xtau,
  target,
  S,
  Z,
  pscores,
  X0s,
  Xtaus,
  nj,
  lambda,
  lowlim,
  uplim,
  data_in
)

Arguments

X0

n x d0 matrix of covariates

Xtau

n x dtau matrix of covariates

target

Vector of population means to re-weight to

S

Vector of group indicators with J levels

Z

Vector of treatment indicators

pscores

Vector of propensity scores

X0s

List of J n x d0 matrices of covariates split by group

Xtaus

List of J n x dtau matrices of covariates split by group

nj

Number of units in jth site

lambda

Regularization hyper parameter

lowlim

Lower limit on weights, default 0

uplim

Upper limit on weights, default 1

data_in

Optional list containing pre-computed objective matrix/vector and constraints (without regularization term)


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