normalize {boot} | R Documentation |
Normalize weights to sum to one within each stratum.
normalize(wts, strata)
wts |
A vector of non-negative weights. At least one of the weights in each stratum must be strictly positive. |
strata |
A vector of the same length as wts defining
the strata. It should be a vector of integers or a factor with
integer levels. |
A vector of the same length as wts
such that the sum of
the output values within each stratum is 1.
Angelo J. Canty