(Internal function) Shift weight from one set of cases to another
You likely want to use redistribute_weights
instead. The function shift_weight
is internal to this package and is used only "under-the-hood."
shift_weight(wt_set, is_upweight_case, is_downweight_case)
wt_set
: A numeric vector of weightsis_upweight_case
: A logical vector indicating cases whose weight should be increasedis_downweight_case
: A logical vector indicating cases whose weight should be decreasedA numeric vector of adjusted weights, of the same length as wt_set
.
Useful links