powered by
Statification of input data matrix into given strata
stratum(x, S, index)
Vector of indices belong to the given stratum
Input data matrix.
Strata by row in matrix S, with 2 columns per variable aka startpoint [included] and endpoint [excluded].
Index of the stratum in S.
.
require(chartreview) x <- matrix(runif(10),ncol=1) strata <- (0:10)/10 S <- cbind(strata[-length(strata)],strata[-1]) print(stratum(x,S,1))
Run the code above in your browser using DataLab