Learn R Programming

svrep (version 0.9.1)

draw_doubled_half_sample: Draw a doubled half-sample

Description

Draw a doubled half-sample using the method described in Antal and Tille (2014)

Usage

draw_doubled_half_sample(n)

Value

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.

Arguments

n

An integer greater than 1.