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

View source: R/standardize.R

check_dataR 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_data(X, target, Z, Xz, lambda, lowlim, uplim, data_in)

Arguments

X

n x d matrix of covariates

target

Vector of population means to re-weight to

Z

Vector of group indicators with J levels

Xz

list of J n x d matrices of covariates split by group

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)

verbose

Whether to show messages, default T

return_data

Whether to return the objective matrix and vector and constraints, default T


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