Skip to contents

Dispatches to the appropriate create_*_weights() function based on method. All validation, defaults, and error messages are handled by the dispatched function; this function only resolves the method name.

Usage

create_replicate_weights(
  data,
  method = c("bootstrap", "jackknife", "brr", "generalized-bootstrap",
    "generalized-replicate", "successive-difference"),
  ...
)

Arguments

data

A survey_taylor or survey_nonprob design.

method

character(1). One of "bootstrap", "jackknife", "brr", "generalized-bootstrap", "generalized-replicate", "successive-difference".

...

Passed as-is to the dispatched function. Invalid arguments for the selected method produce R's native "unused argument" error.

Value

A survey_replicate.