View source: R/make_bootstrap_weights.R
draw_doubled_half_sample | R Documentation |
Draw a doubled half-sample using the method described in Antal and Tille (2014)
draw_doubled_half_sample(n)
n |
An integer greater than 1. |
A vector of length n
,
with elements equal to 0, 1, 2, or 3.
This vector indicate how many times each unit
is resampled.
When n
is even,
half the values will be 0 and the other half will be 2.
When n
is odd, the values can be 0, 1, 2, or 3.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.