syst.sample: Systematic sampling sample

View source: R/syst.sample.R

syst.sampleR Documentation

Systematic sampling sample

Description

Retrieves a \frac{N}{n} systematic sample

Usage

syst.sample(N, n, data)

Arguments

N

Population size.

n

Sample size

data

Optional data of the population.

Details

If \frac{N}{n} is not an even number a 1 in floor(\frac{N}{n}) sample will be taken.

Value

Vector of size n with numbers from 1 to N indicating the index samples to be taken. If data is provided then the instances will be returned.

Examples

data<-runif(40)
syst.sample(40,8, data)


samplingR documentation built on July 9, 2023, 7:26 p.m.