sampford: Sampford's PPS sampling method

Description Usage Arguments Value Note Examples

View source: R/pps.r

Description

Use Sampford's method to select a PPS sample of units

Usage

1
sampford(size,n)

Arguments

size

A vector of the sizes of the units in the population

n

The sample size

Value

Returns the indices of the units that were selected in the sample

Note

The function sampfordpi can be used to compute joint inclusion probabilities for this method. See the user's guide, pps-ug.pdf, for more information.

Examples

1
2
size <- c(9,2,5,17,4,21,15,7,4,11,23,23,14)
sampleindices <- sampford(size,4)

Example output



pps documentation built on Jan. 17, 2021, 9:06 a.m.

Related to sampford in pps...