rand.strat.samp {cubt}R Documentation

Computes a random stratified test sample.

Description

Computes a random stratified test sample.

Usage

rand.strat.samp(y,prop=1/3)

Arguments

y

Observations to stratify. Should be discrete

prop

Proportion for random splitting

Details

Computes a random stratified test sample according to observations in y, containing a proportion prop of the data.

Value

Returns a vector giving the possitions of observations belonging to the sample containing the prop part of the data.

Author(s)

Badih Ghattas


[Package cubt version 3.2 Index]