Learn R Programming

pps (version 1.0)

pps1: Select one unit with PPS

Description

Use PPS systematic sampling to select a single unit out of N

Usage

pps1(sizes)

Arguments

sizes

A vector of the sizes of the units in the population

Value

Returns the index of the unit that was selected

Examples

Run this code
# NOT RUN {
sizes <- c(9,2,5,17,4,21,15,7,4,11,23,23,14)
sampleindex <- pps1(sizes)
# }

Run the code above in your browser using DataLab