as_svydesign() builds a linearization (ultimate-cluster) survey.design
from a prepped recipe, treating the final weights as fixed constants.
as_svrepdesign() builds a replicate-weights svyrep.design from a
bootstrap_weights() or jackknife_weights() object. Both are the bridge to
the survey package, and therefore to svytotal(), svymean(), svyratio(),
svyby(), svyglm() and domain estimation generally.
Usage
as_svydesign(object, ids, strata = NULL, weight_name = ".weight", ...)
as_svrepdesign(object, ...)Details
Only as_svrepdesign() propagates the variability of the weighting adjustments
(nonresponse, calibration, ...), because each replicate re-runs the whole
recipe. as_svydesign() is design-based linearization on the fixed final
weights: its standard errors reflect the sampling design but treat the
adjustments as known without error, so they are usually smaller. Use
as_svrepdesign() (with bootstrap_weights() / jackknife_weights()) when
the adjustment variability should be included.
See also
Other variance estimation:
bootstrap_estimate(),
bootstrap_weights(),
collect_replicate_weights(),
jackknife_estimate(),
jackknife_weights()
