
Rao-Wu-Yue rescaled bootstrap for stratified cluster samples
Source:R/bootss_native.R
morie_bootss.RdWithin each stratum draw m_h of the n_h clusters with replacement and rescale the survey weights by Eq. 3.4: w* = [(1 - r) + r (n_h/m_h) m*] w with r = sqrt(m_h/(n_h - 1)); the bootstrap variance is (1/B) sum_b (theta*_b - theta_hat)^2 (Eq. 3.5). m_h = n_h - 1 (default) keeps all weights non-negative; for n_h = 2 a selected cluster doubles and the other zeroes, as printed in the paper.
Arguments
- y
Numeric observations (ultimate units).
- weights
Positive survey weights.
- strata
Stratum label per observation.
- clusters
Cluster (PSU) label per observation.
- statistic
Function(y, w) -> scalar; default the weighted total sum(w * y).
- B
Number of bootstrap replicates.
- m
Clusters drawn per stratum (scalar or named list); default n_h - 1.
- seed
SplitMix64 seed (mirrors the Python arm).