Skip to contents

Successive Difference Replication (SDR) weights.

Usage

morie_weights_sdr(weights, n_replicates = 100, seed = 42)

Arguments

weights

Numeric vector of unit-level design weights.

n_replicates

Integer; replicate count.

seed

Integer RNG seed.

Value

A numeric matrix.

Examples

set.seed(1)
res <- morie_weights_sdr(runif(20, 0.5, 2), n_replicates = 16)
str(res, max.level = 1)
#>  num [1:20, 1:16] 0.818 0.988 1.258 2.644 0.795 ...