View source: R/standardize_rct.R
check_data_rct | R Documentation |
Check that data is in right shape and hyparameters are feasible
check_data_rct(X, trt, target, Z, Xz, lambda, lowlim, uplim, data_in)
X |
n x d matrix of covariates |
trt |
Vector of treatment assignments |
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 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.