ppssstrat: Stratified PPS systematic sampling

Description Usage Arguments Value Note Examples

View source: R/pps.r

Description

In each stratum, select a sample using pps systematic sampling

Usage

1
ppssstrat(sizes,stratum,n)

Arguments

sizes

A vector of the sizes of the units in the population, sorted by stratum

stratum

A vector of stratum codes, in the same order

n

A vector containing the sample size in each stratum

Value

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

Note

ppssstrat calls ppss once per stratum. See the user's guide, pps-ug.pdf, for more information.

Examples

1
2
3
4
sizes <- c(1:5,10:6)*10
strat <- c(1,1,1,2,2,3,3,3,3,3)
n <- c(2,1,3)
ppssstrat(sizes,strat,n)

Example output

[1] 2 3 4 6 7 9

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

Related to ppssstrat in pps...