Learn R Programming

chartreview (version 1.0)

stratum: Statification of input data matrix into given strata

Description

Statification of input data matrix into given strata

Usage

stratum(x, S, index)

Value

Vector of indices belong to the given stratum

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.

References

.

Examples

Run this code
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