
Create successive difference replication (SDR) weights
Source:R/replicate-weights.R
create_sdr_weights.RdGenerates successive difference replication weights via
svrep::as_sdr_design(). Requires a survey_taylor design.
Arguments
- data
A
survey_taylordesign. PSUs should be in systematic selection order, or usesort_var.- replicates
integer(1), default100L. Target replicate count (>= 4). Actual count may be slightly larger due to Hadamard matrix sizing.- ...
Must be empty.
- sort_var
<
tidy-select> Bare column name giving the systematic selection order. Required for stratified designs (svrep >= 0.9.1); for non-stratified designs row order is used as fallback.- mse
logical(1), defaultTRUE.