Learn R Programming

DSAM (version 1.0.2)

SSsample: Core function of SS sampling

Description

Built-in function: This function performs the SS algorithm.

Usage

SSsample(index, prop)

Value

Return a vector containing the subscript of the sampled data points.

Arguments

index

A subscript vector whose subscript corresponds to the output vector of the data point sorted in an ascending order.

prop

The sampling ratio, with the value ranging between 0 and 1.