shift_weight: (Internal function) Shift weight from one set of cases to...

View source: R/redistribute_weights.R

shift_weightR Documentation

(Internal function) Shift weight from one set of cases to another

Description

You likely want to use redistribute_weights instead. The function shift_weight is internal to this package and is used only "under-the-hood."

Usage

shift_weight(wt_set, is_upweight_case, is_downweight_case)

Arguments

wt_set

A numeric vector of weights

is_upweight_case

A logical vector indicating cases whose weight should be increased

is_downweight_case

A logical vector indicating cases whose weight should be decreased

Value

A numeric vector of adjusted weights, of the same length as wt_set.


bschneidr/svrep documentation built on Feb. 11, 2025, 4:24 a.m.