stratum {chartreview} | R Documentation |
Statification of input data matrix into given strata
Description
Statification of input data matrix into given strata
Usage
stratum(x, S, index)
Arguments
x |
Input data matrix. |
S |
Strata by row in matrix S, with 2 columns per variable aka startpoint [included] and endpoint [excluded]. |
index |
Index of the stratum in S. |
Value
Vector of indices belong to the given stratum
References
.
Examples
require(chartreview)
x <- matrix(runif(10),ncol=1)
strata <- (0:10)/10
S <- cbind(strata[-length(strata)],strata[-1])
print(stratum(x,S,1))
[Package chartreview version 1.0 Index]