find_segment {TestDesign} | R Documentation |
(C++) Classify theta values into segments using cutpoints
Description
find_segment()
is a function for classifying theta values into segments based on supplied cutpoints.
Usage
find_segment(x, segment)
Arguments
x |
the theta value. This can be a vector. |
segment |
segment cutpoints. Values of |
Examples
cuts <- c(-Inf, -2, 0, 2, Inf)
find_segment(-3, cuts)
find_segment(-1, cuts)
find_segment(1, cuts)
find_segment(3, cuts)
find_segment(seq(-3, 3, 2), cuts)
[Package TestDesign version 1.6.1 Index]