
Create generalized replication replicate weights
Source:R/replicate-weights.R
create_gen_rep_weights.RdGenerates Fay's generalized replication weights via
svrep::as_fays_gen_rep_design(). Produces deterministic replicate weights
(no randomness). Requires a survey_taylor design.
Usage
create_gen_rep_weights(
data,
...,
variance_estimator = "SD2",
max_replicates = Inf,
balanced = TRUE,
aux_var_names = NULL,
mse = TRUE,
seed = NULL
)Arguments
- data
A
survey_taylordesign.- ...
Must be empty.
- variance_estimator
character(1). Target variance estimator. Same options ascreate_gen_boot_weights(). Default"SD2".- max_replicates
numeric(1), defaultInf. Maximum number of replicates;Infuses the natural count.- balanced
logical(1), defaultTRUE. Equal contribution of replicates to variance estimates.- aux_var_names
<tidy-select>orNULL. Required for"Deville-Tille".- mse
logical(1), defaultTRUE.- seed
integer(1)orNULL. RNG seed for reproducibility.