rand.strat.samp {cubt} | R Documentation |
Computes a random stratified test sample.
rand.strat.samp(y,prop=1/3)
y |
Observations to stratify. Should be discrete |
prop |
Proportion for random splitting |
Computes a random stratified test sample according to observations in y, containing a proportion prop of the data.
Returns a vector giving the possitions of observations belonging to the sample containing the prop part of the data.
Badih Ghattas