stand {natstrat} | R Documentation |
Standardize covariate vector for balance constraint
Description
This function is used by generate_constraints()
to standardize
covariate vectors to become balance constraints.
The function divides the covariate values by the treated or average group
standard deviation (across strata).
Usage
stand(z, x, denom_variance = "treated", treated = 1, autogen_missing = 50)
Arguments
z |
a factor with the |
x |
a covariate vector with |
denom_variance |
character stating what variance to use in the standardization:
either the default "treated", meaning the standardization will use the
treated variance (across all strata), where the treated group is declared in
the |
treated |
which treatment value should be considered the treated units. This
must be one of the values of |
autogen_missing |
whether to automatically generate missingness constraint
and how heavily to prioritize it. Should be a numeric
or |
Value
A list with two components:
- covariate
a balance constraint for the standardized covariate values of all unites.
- missingness
a corresponding balance constraint for the rate of missingness if
autogen_missing
notNULL
, otherwiseNULL
.